Hello, pasting your own trademark on other products is trademark infringement and reverse counterfeiting.
Product liability shall be compensated by the producers and sellers of the products.
As for the situation you described, if you cannot prove that the product was produced by the other party, you will be held responsible. In serious cases, they may also be suspected of producing counterfeit and shoddy products.