he has to be first satisfied that the arrest made is legal and in accordance with law