(a) Any arresting officer who collects or receives any costs or other charges of a prosecutor or defendant in a case made on a state’s warrant, or of anyone acting in the interest of either of them, before the warrant is returned to the court to which it is made returnable, shall be guilty of a misdemeanor.(b) Nothing in this Code section or in Code Section 17-4-28 shall be construed as prohibiting arresting officers from receiving from prosecutors sums of money sufficient to defray their expenses in going beyond the limits of the jurisdiction of such arresting officer to search for or to make the arrest of the accused person.