If it is not proved that security is necessary, the Magistrate shall act under section 119, according as the person is in custody, for the purpose of the enquiry merely, or is not in custody. ...