"to war upon it, to capture it": and not to destroy it.
"You shall not cut down its tree by wielding an axe against it": This tells me only of iron (i.e., an axe blade). Whence do I derive (the same for destroying it by) diverting a water course from it? From "You shall not destroy its tree" — in any manner.
(We are hereby taught that peace is offered for two days, and a third day before the battle. And so it states: (I Samuel 30:1) "And David Remained in Tziklag for two days." And gentile cities are not besieged fewer than three days before the Sabbath, (so that the siege not extend into the Sabbath); but if the siege began, it is not interrupted. This is one of three lessons taught by Shammai the Elder: A sea voyage is not begun fewer than three days before the Sabbath. When is this so? For a long voyage, but for a short one, it is permissible.)