New Hampshire gun owners who cross state lines​ have to follow Massachusetts laws, the Supreme Judicial Court ruled.