Pain is nature's way of warning you not to behave in certain ways, specifically the ways that cause more pain.