The Bible warns us of temptations that could lead to infidelity within marriage and even gives a solution to this problem.
Corinthians 7:2-5 says: "But because of immoralities, let each man have his own wife, and let each woman have her own husband. Let the husband fulfil his duty to his wife, and likewise also the wife to her husband.