Well it’s a tricky ethical issue, this one.
Men may be statistically more likely to commit sex crimes than women. But suppose one in a thousand men is a sex offender. Does that justify treating the other 999 with suspicion, simply because they are also men?
Some people may believe it does.
But supposing we had statistical evidence that suggests black people are more likely a commit a sex crime than white people. Would that justify treating all black people with suspicion? Would that justify having separate changing rooms for white people and black people?
Perhaps the answer is to have modern, well-designed, properly-staffed facilities that provide privacy and security for all individuals, instead of making assumptions about people based on their sex or race and segregating according.