Get enough sleep, eat well, and exercise regularly.
If we can do that, we will not get depression, even if we have a hard day. But we know that our emotion is up and down, and it needs a big effort to maintain the emotion, so we can still avoid depression. You do not have to try to use medicine to avoid depression because I am worried that can make you addicting to medicine. You can always try to balance your life and not push yourself too hard in the name of breaking your limit because your body will not be too strong.