34 weeks pregnant

I'm 34 weeks pregnant and the last few days I've been getting sharp pains up my stomach especially when I go to the bathroom(poop) is that normal? I know I'm not constipated, just don't want to go to the hospital for no reason but it's on and off..any ideas?