It's probably quite simple. Mathematically:

good idea = good idea
bad idea = bad idea
society = complexity (a complex of good and bad ideas)
bad society = complexity with predominating bad ideas

Therefore, good idea = making a society to have better ideas = to keep you safe from bad ideas.