sex at 35 weeks

Marley • Mommy to a beautiful 9 year old girl and a baby boy on the way💕 Due date 4•29
Sex at 35 weeks and cramping...
So I met with my doctor yesterday I mentioned I've been experiencing cramping and he told me no sex! Have any of you ladies been told this? I also have gestational diabetes so idk if that's a reason to keep sex at a complete holt