The limitations specified by the law mean the people of God will always have fairly feeble military forces. In fact, they will hardly be military at all. Here are some of the restrictions to military power specified by the law.

These restrictions mean that ability of the people of God to engage in warfare will be very limited. This has the following benefits.

God prefers to work with weakness, because when his people are weak, he is strong. A weak defence gives him an opportunity to demonstrate his power. The Midianite army faced by Gideon filled the Valley of Jezreel like a swarm of locusts. Their number was too many to count (Jud 6:33). Gideon stood up against this massive army with a revelation from God and 300 men, armed with trumpets and torches (Jud 7:7,16). They do not seem to have had swords. When they turned on their lights and sounded their trumpets, God threw the Midianites soldiers into confusion and they attacked each other (Jud 7:22). The formidable army fled the country in fear. This is how God prefers to defend his people.

Two Swords

Jesus confirmed this principle when he faced a threat of attack by hostile forces. He checked to see if his disciples were armed. Only two of his disciples had swords.

The disciples said, "See, Lord, here are two swords." "That's enough!" he replied (Luke 22:38).
The disciples had two swords. "Machaira" refers to a short sword or long knife that was better for defence than attack. It would have many uses in a Jewish household for cutting food and cloth, so it was not surprising that the disciples had a couple of them.

Jesus said that two knives were enough for a dozen men, even during a crisis when the authorities were and hostile their lives were under threat. With two knives, twelve men could protect themselves from a small gang of robbers, but nothing more. They would not be capable of dealing with a bigger threat.

When Jesus said that two swords would be enough, he was applying the principle articulated in God' law that his people should be weak in weapons, so they would rely on the power of God. Jesus understood the importance of spiritual power.

Do you think I cannot call on my Father, and he will at once put at my disposal more than twelve legions of angels (Matt 26:53)?
Jesus did not need physical weapons, because he trusted his Father. However, his disciples would not have the same level of faith, so he was happy for them to have a couple of weapons in case they came under attack. But he wanted them to be weak, so they would be forced to trust in God.

Once Jesus was confronted by a "crowd armed with swords and clubs" sent by the Jewish authorities (Mark 14:23), Jesus counted the cost, and decided that he would surrender to them, even though they had no legal authority to arrest him. He chose to go to his death, rather engage in a futile fight.

That principle has not changed. Jesus still prefers that his people trust in him for their protection, rather than relying on weapons of war. War does such terrible harm, it is usually better to suffer and die, than to go to war.