I d never turn my back to a foreign fierce dog. Be vigilant, stay calm, no hectic movement, dont run away. Try not to enter their territory, dont touch them! Arm yourself with a stick and stones to throw, or better get a gun.
In Central America there are many wild street dogs who have infections e.g. rabies.
My recomendation is to stay away unless you are a veterinarian.