Why did he tell me to behave?

One morning i woke up and there was a cop car behind me, and that cop car hits the breaks and it’s these two officers sitting in there. I look back then i keep walking till they came around the other way. So the cop that was driving the car “p” told me his friend “a” likes me and wants my number and i say no. They leave and two hours later they follow me in their cop car as I was driving in town again all the way till i park my car. They ask for my number again and i say no. They leave, and as I keep walking they came back AGAIN asking me where i am from and things like that. However, both of them were on duty and I thought that was unprofessional of them to keep following me but I wanted to see how far they would get ( i caught a bad vibe). They were complementing, me looking at my body and just flirting and laughing non stop. I told them that i had a relationship with a officer who then i found out he was married and he was lying to me and i caught him. I said that to scare them off because i knew there was something. They completely changed their mind. I asked for their names and “p” only told me his last name. And “a” lied about it completely. I go to the police dep website and i was able to find “p” and found out his last name and i put it on Facebook and i found the other dude “a”. 3 weeks after that i found “a” instagram account and turns out that he was engaged so i like their pictures to let him know not to play with me at all and all they were doing is basically laughing at me for some p. Anyway a week passes by and i see “p” and he stops his car in the middle of the road to say “hi” i call him by his name. He got very surprised and said “wow you know my name” and i said “yes i do” he said “you need to behave”. Did i do anything for wrong? I just thought they were very disrespectful by asking for my number and information and following me down the road and i liked his friend’s post to let him know not to play with me because he has a girlfriend of 6 years!

Why did he tell me to behave?
Post Opinion