Your advice is obvious, correct, and utterly useless.
Similarly, advising an alcoholic to "just drink less or nothing at all", or an obese person to "just eat less and move around more", will accomplish nothing of value.
What you did is only a hair better than advising a legless person to "just walk". One is the handicap of the body, the other is the handicap of the mind, yet both handicaps are perfectly real to the person so unfortunate. Both problems can be ameliorated with due effort, but the glib advice will only make the adviser feel good, while making the advised feel worse. The due effort lies elsewhere.