Sun Tzu said this quote

When you surround an army, leave an outlet free. Do not press a desperate foe too hard.