maybe kids cant tell you before then, but i think the science shows that gender develops prior to birth. we are born with zero, one, or many genders. it just takes a while for us to figure out which. some people can tell you pretty much as soon as they can talk and some take into their 80s and some never figure it out.
rather than choosing yet another arbitrary age to impose a life long gender on children we just let people choose when theyre ready, and change their minds whenever they like.