There is this idea that each of us has a comfort zone and as hard as we may try, unless we change this comfort zone, we will consciously or sub-consciously do anything we can to return to this state of anxiety-neutral condition.
This idea of identity is means that there is a big difference between doing something stupid and being a stupid person. Even really smart people still do stupid things and they don't assume the identity of a stupid person, they just realize that at that moment they did something stupid and it does not change their identity of a smart person.
One idea of being successful is enforce a positive identity despite what our actions may indicate. You can then use this identity as a guide of where you want to go.
A different way to look at this is to accept that it may be difficult to truly change our identity. Instead, we can acknowledge our identity and reinforce each day our goal to learn new skills, or "possibilities". You can start each day by saying something like "In the past I have done some stupid things, but I am open to being a person who makes smart decisions." or you can leave out the look into the past and just say something like "I am open to being successful."
The point is that if we don't either change our identity or at least open up the future possibility of having a new identity then we will most likely continue to return to our previous habit.
What is your identity?