How to deal with perverted men at work?

Boundaries. Setting boundaries is appropriate - being specific about what is and is not acceptable and asserting this in a calm but firm manner usually will manage 90% of this unwanted behavior. When warnings about boundaries dont work, sometimes a secnd warning which includes a promise to report this to a supervisor, since they have been warned is step 2. Step 3 report to supervisor, then equal opportunity.