Yeah, as you say, the key point is moderation, always.
I find it extremely unlikely that evolution got us to like foods that are supposedly that bad for us. Our palate is actually a tool for evaluation of what is consumable and has the nutrients we need.
If you look at children not corrupted by ideologies, it will become extremely obvious that they naturally crave this stuff without any prompting.
The problem just comes from our modern ultra-abondance. Not that long ago, most people were very limited in the amount they could consume because it was expensive and rare.