I believe that this sequence is important. Going to the forgiveness part prematurely, is like covering rust with whitewash. It doesn't cure the rust, and the rust will bleed through in a short while. There is an internal conflict between what feels good vs what is good in the long term. Often the easy fix of something which feels good is substituted for good decision making.
Habits are like that.
Sometimes depression is so bad that people use cocaine or nicotine as a temporary fix. Sexual pleasure can also be abused in the same way. Underneath what seems to be superficial pleasure is a person who is deeply depressed, and doesn't have the tools to deal with it. Unethical behavior or drug habits only make depression worse. Bad things happen to good people for our learning.