How are Alien illegal and legal?

If you have permission by the government to enter the country (for visit, work, school, etc...) then you are a LEGAL alien

If you DO NOT have permission by the government to enter the country, then you are an ILLEGAL alien