It's pretty fucking simple.
Don't be a pedophile, don't sexually assault people, be mindful to social situations, respect people's boundaries, and realize when people are expressing discomfort, either physically or verbally.
That's the blueprint to being a decent human being.