It is recommended not to masturbate when pregnant because masturbation can stimulate the uterus, resulting in uterine contractions that can lead to serious consequences of miscarriage. Masturbation can bring outside bacteria into the vagina and lead to infection. Serious pathogenic bacteria can infect the amniotic sac and lead to premature rupture of the fetal membranes, resulting in miscarriage and preterm delivery. After pregnancy, you need to control your sexual desire, especially in early and late pregnancy, and pay attention to rest, keep local cleanliness and avoid douching inside the vagina to reduce the probability of infection.