What's the best way to keep children out of gangs?

What's the best way to keep children out of gangs?