Same concept, better word choice.
So Laymen terms:
If your wife is unfaithful, first, try and work out the problem and conflict by talking to her. (Same as the first verse I quoted.) Then, if the problem persists, cut her off from “sharing beds”. And if after that she still doesn’t stop, then beat her. And even then, lightly. Not giving her bruises/ cuts/ making her look like death just passed her.
The Prophet Muhammad (SAW) said, “The best among you are those who treat their wives in the best manner.” - Al-Tirmidhi, Hadith 217