Hi. I might go and visit another country soon, it's a third world country with lots of strays. I will most likely be staying there for at least 2 months. The last time I was there, which was several years ago, it was hard for me to not try to help the animals I could that was in my nearest vicinity. I was younger then so I admit I did not consider the risks that much and just did what felt right.
Now I'm well aware of the risk of rabies for example, and that would be my main concern. If I can't resist approaching an animal that needs help (usually it has been in need of feeding, taking care of a wound and stuff like that), is there anything I can do to avoid the risk of contracting rabies? There might also be other diseases that I haven't considered, but that feels like possibly the most dangerous one. I feel like looking for symptoms is a very untrustworthy method by itself.
Would love some advice, no success with google unfortunately.

Thank you in advance, any thoughts are appreciated.

TL;DR: How do I avoid risk of contracting rabies when in direct contact with strays?