There is no contradiction. You can tell obese people that their condition will cause them various troubles that they wouldn't have otherwise. You don't have to resort to shaming them for that. Beauty is subjective.
Many people call that shaming. This distinction isn't as clear as you suggest.