I'm a big believer is using solutions regardless of their source. If a Buddhist solutions works the best for me, I use it, if not, so be it. I've read a number of books on REBT ( Rational Emotive Behavioral Therapy ) and CBT ( Cognitive Behavioral Therapy ), both of which are all about changing habit patterns.
All of the authors place strong emphasis on accepting that you are not perfect, that back sliding will happen and on being very positive about picking youself up quickly to try again once you find yourself backsliding.
In reading the scriptures, there are two kinds of mistakes:
One mistake is to cling to the literal text and miss the inner principles.
The second mistake is to recognize the principles but not apply them to your own mind, so that you waste time and just make them into causes of entanglement.