Also like telling someone with depression to cheer up.
Be careful what judgements your words betray. Yes, it is an undesirable state to be in, but that’s yet another reason why its obvious that they can’t help it. If their current state is undesirable, then if they could help it, they would. So ask them what you can do for them rather than telling them something that is likely to make the situation worse.