So much pain.

Me and my boyfriend was having sex and I guess it was rough. Out of no where I start to cramp up so bad like its gas. The cramping eased up but I'm still cramping down low. Why is this happening? We did have sex on my fertile days and my next period is due July 3rd.