What is the meaning of [If you sing before breakfast, you will cry before night]

If you start the day in too joyful a mood, the good spirits are unlikely to
last the day out. This is the warning of the pessimist.