It's racist if you make a decision on who can cross the border based on a person' color (they're all rapists!) or religion (they're all terrorists!) or race or ethnic group.  
It is racist to assume everyone of a certain religion is a terrorist or that everyone from a particular country is a terrorist despite evidence to the contrary----when no terrorists have come from that country to hurt anyone here!) 
Surely that isn't a hard concept to understand?