I don’t think that this makes it wrong. As I see it, the meaning of your advice is to prioritize self-care over work. It surely helps with mental and physical health. And I think this also applies to people saving lifes of others like medical doctors. They are also still people, they can also suffer from that kind of work. And I always prefer a doctor who thinks about getting enough sleep and quality time in life over someone who drives themselves mad and makes themselves sick by burdening the whole world on their shoulders.
If they can’t help themselves, how can they help me?
Or, 101 of car crashes, first save yourself before you attempt to save others.
There are also others who help. It’s not one single person’s job to save everyone.
You do you. :)