On one hand, if you're giving the benefit of a doubt towards your partner as good-natured and you've been a genuine asshole to them too then the advice makes sense(?). Especially if you take a non-confrontational approach or gaslight them when they're tryna makes things work before they cheat. Like I can see there being scenarios of genuine neglect towards a partner yet stuck for some reason in the relationship, then deteriorating enough that it ends in cheating. Where they for sure fucked up, but it remains a choice whether you want to forgive them, and whether you two want to stay in the relationship. Though staying will require change from both ends where you guys are back to properly communicating with one another. That just hinges on if what you two built is worth salvaging.
That said, if she's a hoe, then she's a hoe. Off to the streets she goes. Don't get gaslit into cuck copium thinking it's all your fault lol. All I wrote is just trying to make the advice work in this specific scenario.