In addition, "workfare" is a well-tested approach that has given good results in the past [1] [2]. What's to stop someone on UBI from joining a gang, anyway?
[1] https://en.wikipedia.org/wiki/Public_Works_Administration
[2] https://en.wikipedia.org/wiki/Federal_Writers%27_Project