Yep, clearly married women can't have any male friends. All cheating whores, they are.
I'm not suggesting she'll actually cheat with him. But his character is designed to make Jim believe it to be a possibility, and to increase tension in their relationship. Regardless of whether she cheats with him or not, the potential has been purposefully cultivated by their casting choice.