It shall be lawful for any notary public who is a stockholder, director, officer, or employee of a bank or other corporation to take the acknowledgment of any party to any written instrument to or by such corporation, or to administer an oath to any other stockholder, director, officer, employee, or agent of such corporation, or to protest for nonacceptance or nonpayment bills of exchange, drafts, checks, notes, and other negotiable instruments which may be owned or held for collection by such corporation; provided, it shall be unlawful for any notary public to take the acknowledgment of an instrument by or to a bank or other corporation of which he is a stockholder, director, officer, or employee, where such notary is a party to such instrument, either individually or as a representative of such corporation, or to protest any negotiable instrument owned or held for collection by such corporation, where such notary is individually a party to such instrument.