Any such corporation, or humane officer thereof, may proffer a complaint against any person, before any court or magistrate having jurisdiction, for the violation of any law relating to or affecting animals and may aid in the prosecution of the offender before the court or magistrate.