A person indicted under either of the two preceding sections may plead a former conviction or acquittal of the same crime in any other state or country; and if his plea is admitted or established, it shall be a bar to all further proceedings against him for the same crime within this commonwealth.
Mass. Gen. Laws ch. 265, § 5