Any person not a member of the militia of this state wearing the uniform of the same, or any part thereof, shall be guilty of a misdemeanor.