Cramping for days

I’ve been having period cramps for a few days. My doctor just blew it off as my posture, but it’s in my back, thighs, and stomach. It’s uncomfortable. I’ve tried bubble baths, ice packs, and a heated pad. Any tips. I’m 37 weeks.