A colony of the queenless ant species, Pristomyrmex punctatus, can broadly be seen as consisting of small-body sized worker ants and relatively larger body-sized cheater ants. Hence, in the presence of intercolony migration, a set of constituent colonies act as a metapopulation exclusively composed of cooperators and defectors. Such a setup facilitates an evolutionary game-theoretic replication-selection model of population dynamics of the ants in a metapopulation. Using the model, we analytically probe the effects of territoriality induced hostility. Such hostility in the ant metapopulation proves to be crucial in preventing the tragedy of the commons, specifically, the workforce, a social good formed by cooperation. This mechanism applies to any metapopulation-not necessarily the ants-composed of cooperators and defectors where interpopulation migration occurs asymmetrically, i.e., cooperators and defectors migrate at different rates. Furthermore, our model validates that there is evolutionary benefit behind the queenless ants' behavior of showing more hostility towards the immigrants from nearby colonies than those from the far-off ones. In order to calibrate our model's parameters, we have extensively used the data available on the queenless ant species, P. punctatus.