Crush completely ruined by his attitude?

I had the biggest crush on my co worker. But after he was a jerk towards me (twice) Those feelings went away completely. Now, I avoid him and can be more cold towards him. Which has made him change his attitude to being sweet again. But I take no part in this. Was I in the right for changing my attitude towards him?
Crush completely ruined by his attitude?
Post Opinion