Every collector, who knowingly makes any record of enrollment or license of any vessel, and every other officer, or person, appointed by or under them, who makes any record, or grants any certificate or other document whatever, contrary to the true intent and meaning of title 50 of the Revised Statutes, or takes any other or greater fees than are by title 50 of the Revised Statutes allowed, or receives for any service performed pursuant to title 50 of the Revised Statutes, any reward or gratuity, and every surveyor, or other person appointed to measure vessels, who willfully delivers to any collector or such officer or employee as the Secretary of the Treasury shall designate a false description of any vessel, to be enrolled or licensed, in pursuance of title 50 of the Revised Statutes, shall be liable to a penalty of $500, and be rendered incapable of serving in any office of trust or profit under the United States.