If you're really curious about this matter, film analysis YouTuber Lindsay Ellis has an excellent video on the history of depictions of trans people (primarily in film) and puts Rowling's work into that context, tracing it back to Psycho and beyond.
Basically, there's a long and sordid history of the Cross Dressing Predator as a literary and film trope and this has been used against trans people heavily.
So it's not what she did, it's what other people did before her. Now, finally, we can call someone to task for it. Ah, this has so many parallels now with so many other things going on.
https://youtu.be/cHTMidTLO60
Basically, there's a long and sordid history of the Cross Dressing Predator as a literary and film trope and this has been used against trans people heavily.