A teacher accused of sexually abusing and murdering his adopted baby begged medics "don't let him die", a court heard.