cramps after masterbating

for some reason right before I get my period and I'm masterbating I always get a sharp cramping pain in my uterus once I finish. does anyone else get this and is it normal?