No, it is not illegal to put a Smart Meter Guard on your smart meter. It is illegal to break the security seal on your smart meter. Please do not break the security seal.