"Our constitution was made only for a moral and religious people." -John Adams
if the religious part bothers you, substitute "willing to forgo benefits on principle rather than economic and utilitarian calculation, despite recognizing the prisoners dilemma of doing so"
not as snappy, but maybe less emotionally charged
A religious corollary: "You cannot legislate righteousness", or to your point, "you cannot legislate [willingness to forgo benefits on principle rather than economic and utilitarian calculation, despite recognizing the prisoners dilemma of doing so]"
The context of that quote is interesting. It's a pep talk to the militia. It could be summarized as "Our country is new and so it doesn't suck yet. Go out there and be honorable."
https://founders.archives.gov/documents/Adams/99-02-02-3102
He didn't intend it as political analysis, but it nonetheless makes a fine warning: "But should the People of America, once become capable of that deep simulation towards one another and towards foreign nations [...] this Country will be the most miserable Habitation in the World."
He's pretty clear that this had already affected every other country, and it seems like he expected us to go that way eventually. I don't think any set of laws will govern a people who would rather defeat their opponents than live together.