The purpose of pain is to warn us that something is wrong; it is a survival mechanism that helps to keep us safe from dangers that may threaten our physical integrity. To use a simile: it is an alarm system that our brain has to tell us that we are at risk an…