PROFESSOR McGONAGALL: Your intentions to save Cedric were honorable, if misguided. And it does sound as if you were brave, Scorpius, and you, Albus, but the lesson even your father sometimes failed to heed is that bravery doesn’t forgive stupidity. Always think. Think what’s possible.
Bravery is an honorable trait. McGonagall should know, she is a Gryffindor after all. However, bravely running to battle for the wrong cause because you didn’t think before you acted doesn’t forgive the wrong-doing (or stupidity) of the act. There are brave people who do evil things and brave people who do good. The difference is thinking before you act. Seeing things outside of the current situation. Thinking through the wide-reaching and long-term effects of your actions. Thinking in terms of love rather than fear or hate.
Harry did learn to think first and act second, but not until the end of Deathly Hallows. He had to decide not to act in the case of the Hallows but to return to his quest for Horcruxes. In doing so, he saved no only himself but all of the Wizarding and Muggle world.
Bravery is a noble trait to have, one too few possess. However, when bravery is coupled with thinking and especially with prayer (seeking God’s thoughts on a situation), truly great things can happen.
Trust in the Lord with all your heart;
do not depend on your own understanding.
Seek his will in all you do,
and he will show you which path to take. ~ Proverbs 3: 5-6 NLT