Any officer or any person who knowingly brings or aids and encourages another to bring a frivolous, groundless, or malicious prosecution is guilty of a Class A misdemeanor.