Can contractions feel like tummy discomfort when you need to go to the toilet or taken a laxative?

AMP

I’m 36+5 and just got the most painful ‘cramping’ in my tummy but it wasn’t like a period cramp it was more like I really needed to go to the toilet (I don’t) its passed now but it really really hurt.. lasted about a minute