The correct answer is gender stability; gender constancy
Children know their own sex around the age of two and the people around them between two and three. Around the age of four to five, you will understand gender stability, that is, that people remain with the same gender throughout their lives.