The overlap between Moslems and Terrorists is extremely high. Only an extremely small amount of terrorists are not Moslems.
In order to be obedient to scripture we must ban the Moslem religion since it is a false religion and because they want to kill Christians. Deuteronomy 13 and Romans 13 requires us to ban false religions. The sixth commandment, "Thou shalt not murder," requires us to defend life. When the purpose of an entire group of people is to destroy us, we must defend ourselves from them by necessity.