Sun Tzu said this quote

If equally matched, we can offer battle; if slightly inferior in numbers, we can avoid the enemy; if quite unequal in every way, we can flee from him. Though an obstinate fight may be made by a small force, in the end it must be captured by the larger force.