The framework is the support that you can give yourself when inappropriate, for example extreme, behaviours get you into trouble.
Here you can allow, prohibit or restrict something for a short or long period of time.
It is important to name certain times at which you can change the frame.
And it is also important to get to know yourself better and better (e.g. what you need).
-----------------
Here is a way if you want to avoid your own behaviour in the future:
1. LOOK AT WHAT YOU HAVE DONE (THAT ALWAYS HAS BEEN DONE FROM A DESTINATION IN YOU).
2. LOOK AT WHAT YOU DON'T WANT.
3. MAKE A GOAL WHAT YOU WANT.
4. LINK THESE GOALS BY DIRECTING YOUR ATTENTION TO THE GOAL YOU MADE, EVERY TIME THAT THE UNWANTED WANTS YOU TO REACT.
AS PSYCHE PREFERRED WORKS WITH FEELING, YOU SHOULD ALSO DO THIS; BE AWARE OF HIS NEGATIVE EMOTIONS, WHICH YOU FEEL WHEN YOU CONSIDER HIS UNWANTED BEHAVIOR AND ANCHORIZE IT IN THE TARGET OF THE POSITIVE FEELINGS, AND ALWAYS BEFORE EYES WHEN A SITUATION APPLIES.
It is always helpful to think about the past when it weighs on you: “What happened, had to happen, how it happened.”
Also, helpful (if you want to get rid of unwanted thoughts and feelings) is the relaxation exercise as I described it in meditation:
My meditation (relaxation) exercise consists in the fact that when I inhale, I want to keep getting closer to the end of the universe and when I exhale, I stay directly below this limit that I just reached.
Of course, since the universe is infinite, I can never reach the end. And so, I can continue this exercise indefinitely.
What is very important: There should be no free space between the "end of the universe" and this border that I have just reached.