At what point should you STOP having sex?

Christina
So I know that sometimes around 37-40 weeks, doctors recommend having sex as a natural way to start labor. 
But is there a risk of labor starting if you have sex earlier than 37 weeks? I'm 25 ish weeks currently and wondering if there's a point that I should stop until maybe towards the end?