(2)Every officer making an arrest under this section shall, without unnecessary delay, take or send the person arrested before a magistrate having jurisdiction in the case or to the officer in charge of the nearest police station and the provisions of section 57 of the Code of Criminal Procedure, 1973 (2 of 1974), shall, so far as may be, apply in case of any such arrest.