Peer review in scientific journals assumes that the article reviewed has been honestly prepared, and the process occasionally detects fraud but is not designed to do so.
The article reviewed has been honestly prepared. This is what peer review in scientific journals assumes. The process occasionally detects fraud. The process occasionally is not designed to do so.