According to a study:

A person's history of sex was a predictor of infidelity, too. Men who reported having more short-term sexual partners prior to marriage were more likely to have an affair, while the opposite was true for women.

https://www.deccanchronicle.com/lifestyle/sex-and-relationship/140218/less-attractive-women-more-likely-to-cheat.html

The researchers found that men who had a higher number of short-term sexual relationships prior to marriage were less likely to stay faithful whereas women in this same category were less likely to cheat.

https://www.independent.co.uk/life-style/love-sex/sexual-satisfaction-relationship-cheating-increase-sex-infidelity-study-a8207211.html