Plutarch said this quote

That which is chiefly the office of a general, to force the enemy into fighting when he finds himself the stronger, and to avoid being driven into it himself when he is the weaker...