Idle Villagers steal teammate’s shipments if villagers are near teammate’s town center

The resource gathering radius of villagers seems to be way too large. I just left a game because I couldn’t keep track of my villagers because they would walk a solid halfway across the map to collect a teammate’s resources for no reason. No point in playing if my villagers are going to suicide for something that isn’t even mine to start with.