Engaging in masturbation, particularly during sexual arousal and orgasm, can induce uterine contractions and may worsen the severity of menstrual cramps.