1. Any person who shall in this state unlawfully exercise or attempt to exercise the functions of, or hold himself out to any one as, a deputy sheriff, marshal, policeman, constable or peace officer, or any person, whether acting in his own behalf or as an officer of the law, or as the authorized or unauthorized agent or representative of another, or of any association, corporation or company, who shall bring or cause to be brought, or aid in bringing into this state any armed or unarmed police force or detective agency or force, or any armed or unarmed body of men for the suppression of domestic violence, shall be guilty of a felony, and on conviction thereof shall be punished by imprisonment in the state prison for not less than two (2) years and not more than five (5) years: provided, that the legislature, or the executive when the legislature can not be convened, may call upon the lawfully constituted authorities of the United States for the protection against invasion and domestic violence, as provided in section 4 of article 4 of the Constitution of the United States.
2.  This section shall not apply to a law enforcement officer who pursuant to an interlocal cooperation plan upon receiving an emergency request from an Idaho law enforcement officer enters Idaho to give assistance; nor shall this section apply to the Idaho law enforcement officer who makes a request for emergency assistance.