Some are complaining now that the standards for workplace conduct are so strict that normal expressions of interest will get men into trouble. It could happen, but I don't think that's a huge problem. Some guidelines to avoid problems.
Don't ask a job applicant out on a date.
Don't try to date a subordinate.
If you express interest in someone and they say 'not interested,' leave them alone. Don't push it.
Don't pull your junk out.
Don't touch anyone anywhere you wouldn't touch your mother. Avoid touching generally.
Don't tell sexual jokes.
Don't announce what you'd like to do to someone sexually, even if they aren't present.
Don't talk about sexual matters.
Don't stare or leer at people.
Keep compliments on appearance infrequent and relatively impersonal.
Okay: That's a beautiful jacket. But again, keep it infrequent and don't use a suggestive tone when you compliment. No one should be made to feel you're evaluating their attractiveness.
Not Okay: Your ass looks great in those pants.
If you find it impossible to adhere to that simple set of guidelines, then don't be shocked when you're the one facing harassment accusations.