
Anyone who gains an advantage at something by cheating will ultimately have to face the consequences of their actions.
The saying is recorded from the early 19th century, but a related idea with an ironic twist is found in John Harington's Epigrams of the early 17th century, ‘Treason doth never prosper, what's the reason.