Depends heavily upon your unit. You assault or harass a female (or a male) in my unit and you are DONE. Saw two NCO’s come within a whisker of losing their stripes right down to E1 because they made some stupid comments. They fixed themselves after being dealt with and that was that. The female in question has since been promoted twice (up from E2) and leads a team now and is well respected and marked as a candidate for advancement to NCO herself.
Just like in the regular world. If you have a group of 1,000,000 people, some are going to be dirtbags and there will be crime. It’s the exception, not the rule.