A federal statute, regulation, rule, or order enacted or effective on or after the effective date of this Act is unenforceable in this state if the federal statute, regulation, rule, or order attempts to (1) ban or restrict ownership of a semiautomatic firearm or a magazine of a firearm; or (2) require a firearm, magazine, or other firearm accessory to be registered. An official, agent, or employee of the federal government who enforces, attempts to enforce a federal statute, regulation, rule, or order that is unenforceable under this section is guilty of a class B misdemeanor and may be punished as provided in
AS 12.55.