Pain teaches us what to avoid.