Matthew 5:27-32 explains that the law goes deeper then we think when it comes to adultery and divorce. It is not about toeing the line and seeing how close we can get before it is labeled a sin, it is about the heart. Being righteous is not just doing righteous things.