Whatsoever officer or soldier shall presume to use traitorous or disrespectful words against the authority of the United States in Congress assembled, or the legislature of any of the United States in which he may be quartered, if a commissioned officer, he shall be cashiered; if a non-commissioned officer or soldier, he shall suffer such punishment as shall be indicted upon him by the sentence of