An officer may
restrain a child but only for the period, and to the extent, necessary, in the
opinion of the officer, to prevent the child —
(a)
endangering the health or safety of the child or another person; or
(b)
causing serious damage to property.