https://en.wikipedia.org/wiki/Office_of_Foreign_Assets_Contr... << This is the wikipedia article you're looking for if you want context.
Non-resident alien doesn't mean illegal immigrant at all. As the name implies, it means you're a non-citizen who is also not residing in the US.