New guidelines to avoid criminalising children