What is the meaning of [Discretion is the better part of valor.]

It is wise to be careful and not show unnecessary bravery.

Example: Son: Can I go hand gliding with my friends? Father: No. Son: But they’ll say I’m a chicken if I don’t go! Father: Discretion is the better part of valor, and I’d rather have them call you chicken than risk your life.