This is hypothetical.
Say you meet someone to whom you are very attracted. Temptingly so. But you are married and happy and committed. The obvious solution is to just not see the other person, yes?
What do you do if the other person is someone your DH gets on well with and wants to see a lot? You can't really tell your husband that you don't want him bringing X round anymore because you fancy him, can you? It's not ideal to suddenly decide you "dislike" X and therefore no longer want to see him. What's the answer?