What is the meaning of [don’t cry before you’re hurt]

There is no point in upsetting yourself about something bad that may or may not happen.