the old adage of “all things in moderation accepted” applies to sugar, salt, “red meat”, starches, fats, etc.; etc.; our problems with weight are not do directly to any of those things; our problems with weight (we they do not have real genertic or phsyiological systemic causes) come from our having become gluttons for many foods and how easy the processed food industry has made it for us to to that.
Like the rich man who has a harder time getting into heaven, not because of his wealth or how he got it but because it has provided temptations, temptations not open to the poor or avarge person, though the power of that wealth, to make choices that can be morally problematic.
We have become “wealthy” in what food, what kinds of food and how much food is available to us - wealthy beyond the imagination of people hundreds and thousands of years ago, and we have allowed some degree of that wealth, and our relative ease in obtaining it, to become gluttons, without even realizing it.
Control caloric intake and eat all things, including salt, sugar, fats etc in moderation, not gluttonous excess, and there are few real health concerns from either salt or sugar or fat.