As a corollary if you feel like you want to make a restricted donation to a particular organization, don’t donate to that organization. Find one that’s better aligned with your values.
Better yet, re-align your values towards "help as many individuals as much as possible with the limited funds available". It's often the case that there are more cost-effective ways of helping people.
Preventing people from getting malaria costs very little - so much cheaper than trying to cure a single individual from cancer (for example). Suffering is suffering, and it shouldn't matter whether it happens in your country or another. Help as many as you can by being cost-effective (see GiveWell for research).