Pregnancy and sex

When would be a good time for you to stop having sex when you're pregnant?