"...would I be correct to infer that what's being said here is that due to the desperation of some of the population, for the reasons mentioned, these people would start believing in the twisted logic of terrorists and then turn to mass murdering our citizens?"
That plus the twisted logic of male privilege which is only reinforced behind bars. I know my share of men who are either incarcerated or have done at least one bid. They've been brutally honest with him about two rules of survival in the joint. The first one is... fight or f*ck, and the other is...you're either the alpha dog of the clique or a beta bitch.
Terrorism is horrible right along with prison rape. I don't claim to understand all the conditions that could lead mainly young men to perpetrate either act. But, when you have a toxic brew of massive unemployment among the perps, a strong sense of alpha-male entitlement, identity politics, and a history of victim-hood, in the context of the penal system or a 7th century belief system that basically ignores a woman's person-hood, bad shaite's likely to happen. For some reason, pent up frustration, gang-induced bravado, and religious zealotry cause some boys and young men to become feral.
We only need to ask ourselves why the US armed forces almost exclusively place young men in combat roles, sparing women and elderly men. Ground forces tend to be made of young virile men, be it under a flag or fatwa. My dad, who is a veteran, believes that there is sweet-spot in which young men can be rather easily cajoled to take the lives of others. Somewhat related, Baltimore City has registered 300 homicides thus far this year, the highest level since 1999, with more than a month to go.
#FactsMatter...your feelings not so much.