One of the ways which significantly reduces chances of cheating and problem proofs your marriage is premarital counseling. During premarital counseling, a couple can discuss expectations and discuss how those expectations can be met, engage in problem solving with the therapist, and figure out what kind of sexual activities, what kind of romantic activities what sort of intimate communication is important, to make sure that they're sexually satisfied.
I think having expectations out on a table, knowing what your partner desires and dislikes are very important in making sure that his or her emotional and sexual needs are met. And remember, it is unmet needs that is the most frequent reason why people cheat. So premarital counseling, and of course even marital counseling, allows for those needs to be brought out in the open, to be discussed in a very safe and neutral environment. And too, for the couple to engage in problem solving, and figure out what kind of ways can they meet each others needs.