No it's not illegal, however you can be charged with trespassing, disturbing the peace and/or public nusance. Punishment is based on if charges are brought. In most cases if caught (which if you are.. You didn't do it right LOL) under 18 is turned over to parents... Generally at the police station.