How do local communities contribute to cross-border security, and what risks do they face?

In the context of villagers resisting smugglers at the India-Bangladesh border, I want to understand the role of local people in maintaining security and the possible dangers they encounter.