It is a misdemeanor for any person for compensation to knowingly make a false or misleading material statement or assertion of fact in the preparation of an immigration matter which statement or assertion is detrimentally relied upon by another. Such a misdemeanor 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.