The MAC and SN, is static date stored on the router. It is the same as radio data, which you should not touch.

If you change firmware, the new firmware may not read the sn at all.

But most firmware need to read the mac address. The mac address can be changed in the firmware as well. it does not need to read the factory stored data.