My midwife says unless put on restrictions to have as much sex as u can because what got the baby in there will help to get it out so sex is your best friend right now. It won't make the baby come early so don't worry about that it just helps to soften everything
It's perfectly safe unless your doctor tells you other wise. I had sex up to 39 weeks.