Every attorney who, either directly or indirectly, buys or is interested in buying any evidence of debt or thing in action, with intent to bring suit thereon, is guilty of a misdemeanor.
Any violation of the provisions of this section is punishable by imprisonment in the county jail not exceeding six months, or by a fine not exceeding two thousand five hundred dollars ($2,500), or by both.