In making an order under this Part in respect of a person, a court is to apply, where appropriate, the principle that restrictions on the person's freedom and personal autonomy should be kept to the minimum consistent with the safety of the community when determining (a) which order to make under this Part; or(b) the conditions of such an order.