Testing the resilience of agro-pastoralists communities in arid margins through ABM