Pushing while constipated

Will it hurt my baby to push while going #2? I know any form of stress isn't good for the baby and I want to take every precaution after losing my first by miscarriage.