Retarget loyalty intuitions onto specific humans (never ideologies or collective identities). Retarget revenge intuitions onto patterns of incentives (never specific humans).
She's a ward of the state; you have an inalienable right to live; I'm literally more useful alive rather than dead with respect to the values of powerful coalitions.
Always be peaceful and tell the truth to your friends because you love and trust them. Always be peaceful and tell the truth to cops, schoolteachers, psychiatrists, CPS agents, &c. because you're outgunned and bad at lying. Don't be confused about your reasons for doing things, even if you always end up doing the same thing.
"We need to institutionalize people in order to prevent them from hurting themselves" has the same memetic-superweapon structure as "We need to torture terrorists to get them to tell us where they've hidden the suitcase nuke." The scenario as stated obviously has consequentialist merit (death is worse than prison, megadeaths are worse than torture), so you'd have to be some kind of huge asshole—or a former suspected terrorist—to say, "I claim that this hypothetical scenario is not realized nearly as often as you seem to be implying and therefore falsifiably predict that many of your alleged real-world examples will fall apart on further examination."