We need provision for specifically trans people at this point. Transgender bathrooms, wards, etc. It's very segregatey but honestly seems to be the only way to keep trans people safe from men. If a trans woman was put in an all male ward they'd probably be at risk too for presenting feminine.
We could stick all trans people in with women, but that's a bit unfair when women also might not feel safe around biological males. Which is understandable, really.
But the biggest issue in this is how easily men will rape and sexusally assault anyone who is not a cis man. Even mentally ill they're not raping all the other men on the ward, but the moment a trans person goes in... Rape. So you can't blame the mental illness else they'd be raping everyone else in the ward already too.
Men are a big problem and I dunno why we're beating around the bush about it and blaming everyone else BUT them for it.