This is a nuanced point that anti-science people often get wrong.
The existence of fraudulent studies, dishonest researchers, the replication crisis, etc. does not invalidate science as an institution. It just means we need to be careful about distinguishing between individual opinions and the scientific consensus. We also need to keep in mind that the consensus is never 100% correct; it's always subject to change and we need to update our beliefs as new evidence comes in.
The existence of fraudulent studies, dishonest researchers, the replication crisis, etc. does not invalidate science as an institution. It just means we need to be careful about distinguishing between individual opinions and the scientific consensus. We also need to keep in mind that the consensus is never 100% correct; it's always subject to change and we need to update our beliefs as new evidence comes in.