That is not entirely true. The James gang was also part of the Dalton gang. There was a time when the Dalton gang tried to rob a bank in a town. The word got out while it was happening and a lot if it’s citizens pulled out their firearms and shot at least half of the gang before they could get out of town.
Not 100% correct.
The Dalton gang met its demise in Coffeyville, Kansas, in 1892.
The James-Youger gang got shot up in Northfield Minnesota, in 1876.
The two gangs were not even really contemporaries.
But that DOES make two examples of citizens going in to action to halt bank robbers.
Less famous was the Eureka Springs bank robbery/gunfight. Hostages were taken but not killed. No citizen hit, all four robbers shot, two of them killed. It happened 46 years after the James-Younger gang was shot up in Northfield Minnesota:
http://gunwatch.blogspot.com/2014/03/eureka-springs-gunfight-showed.html