As long ago as the 90's I often refrained from giving female coworkers compliments on how they looked for fear of misinterpretation, which was mostly in my head as the compliment was going to be quite proper instead of "Damn I bet you look even better with that off". That wasn't my style, until I was dating someone and then all bets were off. Still never scared one off with a compliment.
Sometimes even when they were fishing I let it go.
For this reason and many others the work place is NOT fun anymore unless you work with a small tight knit group.
That's not to defend the guy who was a pig about what he said. But my experience is when that guy was super good looking or charming it never got reported.
I did enjoy evaluation day though when staff would come in the most provocative clothing they ever war. "Hey Jimmy who are you evaluating today? LOL
For the most part men and women are perfectly capable of living and working together, setting and respecting boundries etc. You don't have to fully understand the other gender, merely respect the individual. To young girls if the guys in your neighborhood refer to you as "$#@!es and hos" that is the opposite of respect. Hang out in a different neighborhood and leave the disrespecters without female company.