You may want to read this before stepping out on your significant other. Or just don't do that for moral reasons. In the United States, there are still quite a few states with some sort of law that makes cheating while married a crime and New Mexico has its own version.

In the Land of Enchantment, there's something called "alienation of affection" which allows a spouse to sue someone who could have played a part in ending their marriage, per KOAT News. There are only seven states that still recognize the law, which has been around since the 17th century. Those states are Illinois, Hawaii, Mississippi, South Dakota, North Carolina, Utah, and New Mexico.

Enter your number to get our free mobile app

According to the Washing Post, these ideas about liability and wrongdoing in a marriage have been around since 17th century England. In the beginning, the law was based off the idea that a man "owned" his wife's love and affection and if another man came and took that away from the husband he could be held legally responsible. "Alienation of affection" is used in modern times to look at the benefits of marriage like love, companionship, and more.

In case you're worried don't worry, you're not going to be thrown in jail for cheating on your spouse, or for sleeping with someone who is married. But you can be sued and it's happened before.

Back in 2018, Keith King was awarded $8.8 million dollars after he successfully sued a man for breaking up his marriage. Similar cases were won by different women in 2011 and 2010, per the Washington Post.

So if you're in a marriage or start developing feelings for a married person, you may want to think twice before jumping between the sheets if you live in New Mexico.

LOOK: Here are the 50 best beach towns in America

Every beach town has its share of pluses and minuses, which got us thinking about what makes a beach town the best one to live in. To find out, Stacker consulted data from WalletHub, released June 17, 2020, that compares U.S. beach towns. Ratings are based on six categories: affordability, weather, safety, economy, education and health, and quality of life. The cities ranged in population from 10,000 to 150,000, but they had to have at least one local beach listed on TripAdvisor. Read the full methodology here. From those rankings, we selected the top 50. Readers who live in California and Florida will be unsurprised to learn that many of towns featured here are in one of those two states.

Keep reading to see if your favorite beach town made the cut.