I Don't Know What to Do

my stomch has been hurting for a while my boyfriend and I had sex on th 11th and I was fine i was on the second to last day of my period but he still wore a condom and everthing was good, but after a couple days my stomch was killing me i didn't know what was wrong I just thought I was constipated. And on 19th we had sex again and he wore a condom but when he was inside I was having a stabbing cramping pain like he was going too deep and touching somthing he shouldn't. Now ever once in a while I get the cramping pain from hell and it just comes and goes and it makes it hard to use the bathroom.I don't know if we should stop having sex for a bit for this to heal on it's own or if I should go see a doctor?