Noticing your unhelpful habits as soon as they start to emerge is a skill worth learning. Instead of getting carried away and indulging in behaviour you’re likely to regret, stop.
Realise what you’re doing, realise why and make the conscious choice not too continue.
Before you get to that point you might find that you regularly have situations where you don’t show up as your best self, you don’t put in much effort or you’re not treating people how you want to be treated.
But those things aren’t helpful. It doesn’t benefit you to be half-hearted with your efforts or unkind to other people.
As soon you realise that, the more likely you are to catch yourself in the act the next time it happens until eventually you’re no longer giving in to your unhelpful habit.