Hi.
The fact that you've stopped cutting before tells me that you've been able to put some structures in place that have helped you to deal with the issues in your life rather than trying to push them away.
However, just as with any kind of behavior that helps to distract you from your pain, cutting can be really tempting in times of stress--an "easy" out, so to speak. But you know from your previous experience that it does nothing to deal with the stressful situations.
Try not to judge yourself too much for your thoughts of cutting. It's completely normal when you're trying to break a habit, to have regressive thoughts or even some slip-ups. The important thing is not to indulge in all-or-nothing thinking--to think that once you think about cutting or even cut, there's no turning back.
Your personal experience is a testament to the contrary. Use the knowledge of your strength and resolve to your advantage. "Revisit" what helped you to stop cutting before. Did you seek therapy? Did you find another way to deal with stressful situations like meditation, sports or yoga? Did you get through it with the help of supportive friends or relatives? Did you find combination of these things helpful? Try them again and think of it as a "tune up."
It may take more than two years for you to shake the habit completely, but that's okay. You're paying attention and that will take you far.
Best.