The Mishnah mandates that people beyond the gender binary must be protected from all forms of harm. This so much more comprehensive than anything we have today to shield us from attacks.
Rabbi Levi’s Abraham passes the test because he remains sufficiently calm and clear-thinking to avert a misinterpretation that would have ended Isaac’s life.