diarrhea during 3rd trimester

Em
Is it bad having stomach cramps and diarrhea at 39 weeks pregnant? I keep going to te bathroom  and it's annoying (it's 3:00am) 😢