Any director, officer, agent, or employee of an association who, on behalf of such association, shall knowingly and wilfully make or participate in making or consent to any loan or investment contrary to the provisions of this title shall be guilty of a gross misdemeanor.