The knowledge involved in that risk-reward loop does not involve reasoning. It comes to the child coded in feelings, which represent emotional experiences in a particular environment. If the environment changes, if it has unfamiliar or subtly different hazards, those adaptations may turn out to be inappropriate.