Preventing the path to extremism