Pacifism has its limits. Rather, He was discouraging vengeance and retaliation when we are personally insulted. The Bible does not support national pacifism. Our goal should be peace, both on a personal and a national level, even though there will be times when self-defense is justified. If the government asks us to go to war and we cannot in good conscience participate, we should seek exemption from the battle.
Some countries allow such exclusion and allow civil service for the government as an alternative.
In other nations such a person would be treated as a traitor. If our convictions conflict with government demands, we must be willing to take the consequences. They can be. Satan is doing everything in his power to corrupt every element of society. In Old Testament times, he worked through the wicked nations that surrounded Israel to make them a constant source of irritation to God's people.