If you break the law while you’re staying in New Zealand you may become liable for deportation and, provided you’re not required to serve a prison sentence, you’ll have to leave New Zealand immediately.