Period Cramps at 37w5days

I’ve been getting cramps that feel like my period all day. I’ve also had a lot of constipation then diarrhea. My whole body feels off. Went to the dr. A week ago and was only 1.5 centimeter and cervix was not soft at all.