from the middle east, screen them well and you're good. the immigration process is already extraordinarily obnoxious, so it really discourages terrorism that way
fun fact: in the US, more people died from armed babies than foreignborn islamic radicals