I don't think he would have cheated if I hadn't treated him so badly.
Do not justify his actions.
There are moments in this life when you are so confident in the rightness of your actions, that not even for a second do you consider the option that you might be wrong.