I think you mean it's a moral mistake, and I agree that science's role in propping up modern civilization is open criticism on that front. But that's beside the point I was making, which is that science has served that function as a matter of historical fact, and that philosophical naturalism is grounded in science's productivity. True, science might end up being counterproductive and thus unwise (if our empirical knowledge ends up extinguishing our species). Still, scientific theories have been successfully tested in their technological applications. Science therefore works in a narrow, instrumental sense, and to some extent also in a humanistic one in that science has the potential to elevate our living standard.