So, I'll start by saying that this is definitely a less than ideal installation. However, that's AL-triplex wiring and the insulation is some pretty tough stuff, you need a good skinning knife to trim it. Under the correct circumstances you can handle that wire bare handed (not recommended but you can do it) but at a minimum get yourself some clean leather gloves and slide a 2x4 between the edge of the metal roof and the wire. I wouldn't touch that roof until you have done that. If that wire is nicked and touching the metal roof and the bare ground wire isn't properly connected at either end, there is a small chance that you and the aluminum ladder could complete the path to ground and that's not good. However, once you have done that I wouldn't worry about working close to that wire, the insulation on it is better than what is on an extension cord and nobody thinks twice about those. Again, this is not an ideal situation and that installation is definitely not to any US code, but as far as what codes are applicable in Mexico, I have no idea. Disconnecting the power and rerouting it is the 100% correct thing to do but you aren't in imminent danger and a few simple steps could allow you to do what you need to do safer than the current situation