If an intelligent alien came to Earth, would it have the same rights as humans?

Well, now that the President is taking away rights from humans who are from alien countries, I’d think it would be worse for an alien coming from another planet. I suspect they would lock the alien up and study it and you’d never hear another word.