I've heard this advice many times, mostly in shitty memes and as part of /feels/ threads.
I think the problem with it that if you are at that point, you're already feeling utterly hopeless.
Suggesting that someone who's suicidal:
* willingly loses everything in their life
* starts from nothing
* fights their way through the chaos that is building a new life for yourself
* in a strange and unknown place
* with no support at all
is naive and unhelpful.
To me it also feels pretty dismissive, up there with "you should smile more".