I've seen far more stories of female teachers being accused of rape than men, but maybe that was because I mainly pick up those stories on reddit.
I strongly believe that anyone who behaves appropriately and has healthy boundaries will not be at risk.
I also think it is dangerous to assume the rape allegations are false. It is well known that pedophiles are particularly drawn to roles where they exercise power over children (priests, coaches, teachers, scouts, etc) so there will be a higher preponderance of such people in schools. That should not discourage non-pedophiles from taking such jobs. Quite the opposite: you can help combat pedophilia.