Pain with sex

Ashley
So I'm 23 weeks and I get this pain in the side of my stomach during sex. It's to the point it's just a turn off for me. It the beginning of pregnancy I would have occasional cramping during orgasim but this is different. 
I've stopped and just laid there before and that side of my stomach is hard. It goes away but it's annoying! 
What's the deal