Science is a tool. You can do good or bad things with it.
If scientific evolution lags behind spiritual evolution than bad things can happen. If spiritual evolution is ahead of scientific evolution then the outcome would be better.
For example in World War II, Germans had good science. But spiritually they were lagging.
The had better tank, guns, aircraft and ballistic missiles. The actually killed millions of people many of them were innocent.
They performed genocide.