According to the halachic explanation quoted here, when must a border settlement be defended even on Shabbat?
The explanation states that an armed defense of a threatened border settlement is required even on Shabbat, even if the attackers demand only straw for their animals or are merely preparing to attack. The reason is the danger of giving them access to the rest of the territory and thereby endangering lives. The text applies this principle both in the Land of Israel and elsewhere, regardless of the historical period or population makeup.
A practical halachic question: the final ruling is for your rabbi.
Quote from the source«It is an act veritably to save lives.»
- Author
- Lubavitcher Rebbe
- Source
- Beis Moshiach - English — 563, p. 25