Easy. Enact legislation to outlaw involvement with terrorist groups and activity, with penalties including stripping of citizenship. Issue with making an individual stateless? Why? They forfeited their privilege to citizenship when they travelled abroad to engage in terrorist activities.