The Relations of Terror and Immigration: Preventive Solutions