We cannot erase sometimes that we are jealous gotten by other gamblers that's why sometimes we follow then do such risky bets just to try our luck to win the same as their. But if we really think deeper this action we can realize that its wrong to do this since not everyone have the same result especially on gambling that's why we need to follow our plans and always think about every game is versus myself only and we need to do better compare to our yesterdays performance.
What you should do is, be jealous of someone if you can't help it, that is understandable but do not gamble at the same time of that period. So let's assume that you see someone putting 1 dollar in and get 10k out, and you are feeling "MAYBE I CAN DO IT TOO!!!" then stop gambling, don't even start, stop gambling completely and not even a small amount during that period, because in that situation you will lose a lot of money. Do it like a few hours later, or maybe do it one day later but basically just try to avoid gambling as much as you can while feeling those type of emotions, it would definitely help you out a lot.
I personally feel like it is actually not that bad at all to even give big breaks out of no reason sometimes, because when I comeback I feel a lot better and gambling becomes a lot more fun, it is definitely better that way then keep gambling everyday for too long.