@hkhlcq,
Consider the definition of "people"
people
/ˈpiːp(ə)l/
noun
1.
human beings in general or considered collectively.
"the earthquake killed 30,000 people"
synonyms: human beings, persons,
individuals, humans, mankind, humankind, the human race, Homo sapiens, humanity, the human species, mortals, (living) souls, personages, men, women, and children; More
Quote:Is it acceptable to say "prevent people from committing crime"?
Yes it is, and the expression is quite popular.
Quote:I hardly think so, because it is rare that people would commit crime as a whole.
The definition is not confined to the entire human race.