Having sex isn't illegal, giving consent is.
Do you know what is really stupid about our laws, (ignore the biological impossibility but I will carry on) is that if the father of the child was 3 or 4, it wouldn't be illegal. A 15 year old girl cannot be charged with raping a minor male, yet a minor male can be charged with raping a minor female. Daft, isn't it?