TMI- extreme bowel movements ?

Sorry if this is a stupid question but I’m just not sure what to do or if there’s anything I can take? I’m 37 weeks pregnant and have been having nonstop diarrhea. Is this a normal part of the end of pregnancy? I haven’t even been eating really as everything’s so uncomfortable and I have really bad nausea again. I’m not starving myself just have a loss of appetite. But despite this I’m still constantly going to the bathroom. Someone said this is your body’s way of cleansing itself out before labor. Is this true? Is there anything I can take for it? I’m just so tired of going to the bathroom like every ten minutes