Can straining cause..

An
So I'm extremely constipated ladies & can straining while trying to poop hurt your baby? I'm almost 22 weeks pregnant & realized I'd get some cramping or contraction almost like pains but then they stop..... I from now on will not strain, I'm still feeling my baby move but what can I do & not do !?!?