Sharp pain while having sex

So last night me & hubby were having sex & out of no where I get a really bad sharp pain in my lower stomach. Never has happened to me before. We had to stop having sex because I could no longer go in. We are currently trying for baby number 2. According to glow my period is due in 3 days. Lately I also been feeling like my stomach is tightening also lower stomach. I also had cramps like 5 days ago for a little while but it stopped. Has anyone experienced this before? Especially the sharp pain while having sex? If so how long did it last ? Any ideas what it can might ? Help please.