New job… danger

I recently started a new job in which im surrounded by males. Cops to be exact. One of them began making his way into my messages. I agreed to chat but made it clear we could only be friends as I am married and he is married. It was a lot of exchange of messages in which he would flirt and I would tell him to stop. I made the mistake to eventually reciprocating that behavior and when I tried to stop it now its all weird. The thing is I started feeling so dirty and shamed when he would start asking me for pictures of myself like selfies and feet pics. It got to that point. And I finally mustered the courage and said no, this has to stop. Its not right even though I ended up partaking in it. What was weird to me is that he said his relationship with his wife had gotten better after having issues. I confronted him and said “then what are you doing texting me and doing all of this” he said idk I like you im attracted to you. He said he would never leave his wife and blah blah blah. I mean i never asked him to but he himself told me. He even threw in the word affair to which I told him absolutely not. I began to detach myself from the mess I had gotten myself into before it got worse. I drew the line and told him no more pictures he needed to stop. Also because at work he wanted to be overly friendly and last thing I want is for rumours to start. He said “fineeee but I am your friend and I want to be a part of your life. Who cares what anyone says” Now, He rarely says hi. No longer looks at me. And passes me by. He swore he wanted to be friends forever but since I told him whatever was happening needed to stop out of respect for me him and our spouses, now he acts different, cold and weird. I honestly dont care I just don’t want to be made feel like I did something wrong for putting a stop to it.