Pain after masturbation

Alexa

Hey, I'm 15 and mastubate a few days in the week before my period. But after I have mastubated I get really bad pain and the pain is strong and sometimes lasts a day or two. Why is this and should I do something about it?