This phrase is a cheer of encouragement. It means to tell someone to show strength and determination and to fight hard. In this case, Peeves is being urged to be brave and to do their best. The phrase implies that although the person may be facing a daunting task, the speaker and possibly others are supporting them and offering their encouragement.