39 weeks pregnant today, cramping all night long but irregular,also up and down in timing...

Any suggestions on maybe labor starting soon? Also loose stool for past 3 days. Sometimes the cramps feel like a upset stomach and I have to poop but then I dont just Alittle gas.... Others its just menstrual cramps.