For a printer to be compliant, it mustn’t be possible to bypass the restrictions. So your printer might not even be legal if it allows you to flash custom firmware.
…and cannot be overridden or otherwise defeated by a user with significant technical skill.