A director, treasurer or other officer or agent of a railroad corporation, who knowingly votes to authorize the issue of, or knowingly signs, certifies or issues stock or bonds contrary to this or the preceding section, or who knowingly votes to authorize the application, or knowingly applies the proceeds of such stock or bonds contrary to any provision of said sections, or who knowingly votes to