Yes, it is illegal to open or make any changes in the package that are not addressed. If you intentionally open a package that is not sent to you, you are creating a hurdle in delivering the package to the correct recipient, which is against the law.