In your heart you know the right thing to do at each moment in time, but your mind wants to feel good right now. You go on a diet yet you want something sweet, so you eat a fancy dessert. Momentarily it feels good but the long-term result is fat. You get turned on sexually and have an affair that generates excitement in your life, but it might destroy your marriage.
Your mind will always choose immediate gratification at the expense of long-term satisfaction. Only the result immediately following the act matters as far as your mind is concerned. The second consequence doesn't matter. Your behavior is programmed by the initial reinforcement (either positive or negative) and it will increase that behavior. Each time you give in to what your mind wants, the more likely you will give in again.
When you let your mind's desire for instant gratification control you, the mechanics of your life don't work. The only way to take control of your mind is to understand how it works against you. Then make agreements with yourself and have the integrity to keep them. You either get results in life or you create excuses to explain why your life doesn't work.
Peace and light,