Are AdventureQuest Worlds Private Servers Legal?

No. Running a private server means copying Artix Entertainment's game data and using their intellectual property without permission, which gives them grounds to take legal action if they identify who is behind it.

In practice, nobody goes to prison over it. What actually happens is that your AdventureQuest Worlds account gets disabled and the private server gets shut down. You end up in serious trouble, just not the criminal kind.