Also, it helps a lot to have strict sanitary standards for yourself, like always using a clean, fresh utensil to scoop out your servings. Or if you use the same one, start from the most-recently cooked food and end at the oldest, so you're not potentially introducing bacteria or mold from older stuff into newer stuff.
I eat leftovers sometimes up to maybe 10 days at max, but I am pretty good at avoiding any issues from it.