39 weeks and in pain

I had went to bed at 6 am (I was doing something important all night), and ever since I’ve had a almost constant cramping in my lower stomach. Nothing soothes it, I’ll switch positions, I’ve put some heat on it, walked around, and nothing changes. Like I said it’s constant and kind of feels like intense cramping from either being constipated or having trapped gas but neither seem to be the case. What can I do to soothe the pain? I’m 39 weeks 4 days