Moral of the story:
Don’t sleep with a married man/woman because it violates God’s Law / 7th Commandment. Plus, their spouse may murder you if and when they discover you.
Good advice and that is why it is in the Ten.
I’d say it’s don’t marry slutty women.