Pressure at 38+4 weeks

I have lots of rectal pressure and some vaginal pressure. It feels like I need to go to the bathroom but I can't and if I do it ends up giving me really bad sharp pain I guess gas pain that makes me double over in pain and I can barely walk. It goes away a little bit when I bounce in the yoga ball but not by much. Anyone have any ideas on what I should do?