This is such a penetrating question, but it's so highly valuable. Although I'd say I'm pretty well in control of my gaming habit, there have certainly been times where I've asked myself this and...it's led to a fairly embarrassing laundry list, heh.
So just having that in mind and being aware of it has really been key. This is why, even when playing big sprawling games, I tend to set SMART goals (of a kind) to limit my play sessions. Maybe I'll assign myself another quest or two but then have a hard stop. Or maybe I'll switch off at the next save point, for example.