means that
sound judgment and restraint may be more courageous and effective than exposing oneself to unnecessary danger.
The saying “Discretion is the better part of valor” can be used when caution is preferable to rash bravery; it is better to avoid a dangerous situation than to confront it.