Help constipation and cramps !!

I'm 31 weeks, I have been constipated going on four days now. I am also experiencing cramps (period like cramps). What can I do to relieve my constipation and should I be worried about the cramps?