Cramping while going number 2

Hey ladies! 
Have any of you cramped while going number 2 during your period? I have. Still I don't know why. 
Now I am 5 weeks pregnant and I'm having the cramps again. Constipation is real for me since I became pregnant. Any insight on my issues? 
I don't have a doctor yet since I'm moving this week. Any advice would be appreciated. 
Thank you!