They made gender-subversive characters evil as a way to enforce norms, not as a way to challenge norms. They did that so that no child watching the movie would want to grow up to subvert the norms, because the portrayal of the people who did was so awful.