How can I safely manage pain without causing harm to my body?

How can I safely manage pain without causing harm to my body?