Sex should be avoided when the cervical mucus is clear and slippery. This is when a woman is most fertile. Sex should also be avoided when the mucus is white or yellow with a sticky feel, right before ovulation. This is because sperm can live in the female body up to 5 days.