Playing devil's advocate, but maybe she said something more than just "there are only two genders"...sometimes people who believe in the binary (or not) can get very hostile, to the point of demanding involuntary commitment or worse.
Once a person gets such a reputation, the fuse is very short to the opposition.
I'm not saying what was done is ethical, in fact just the opposite...but when dealing with extremely emotionally-charged issues, one must be careful about martyring either side based on limited evidence.
This is true for both the Left and the Right (another binary-defined construct).
imho