It is not illegal to unknowingly help another person commit a crime. Because although the behavior objectively causes damage, it is not intentional or negligent, but is caused by irresistible or unforeseen reasons, and does not constitute a crime.
Legal objectivity:
Article 14 of the "Criminal Law of the People's Republic of China"* * *A person who intentionally commits a crime knows that his behavior will have harmful consequences to society, and hopes or allows it to happen Such consequences occur, thereby constituting a crime, and it is an intentional crime. Anyone who intentionally commits a crime shall bear criminal responsibility.