Cheaters are always scared of being cheated om

I told my boyfriend i have a friend who is a guy im and hour a  way in a new city where i barely know anybody so hes the first person i met. My bf told me i wasnt allowed to hang with him. I told him i would never do anyrhing hes just a friend. Hes cheated in the past so his response was i dont know that you might try to get back at me md get revenge. First of all ive never cheated so im mad he said that second why is it ok for yu to cheat but then get all nervous when im around a guy. Is it wrong for me to hang with a guy or is in the wrong for saying what he said