Crampss

I already pooped like 3 or 4 times today been up since 5 am with cramps they went away n I woke up again around 10 with more cramps. What should I do I'm 31 weeks