Sex is determined at conception. It then becomes a part of one’s genetic makeup, and can not be changed, ever, for any reason.
It’s not gender.
bammy acted illegally, but nothing will happen since he has the immunity given to him by his protective pigmentation.