Dave Ramsey's financial books go into this in detail. If you give someone money and they then blow it on eating out or a vacation after complaining they cannot pay the electric bill, you have the right to be mad.
If someone is irresponsible and begs for money, you have the right to require responsibility - such as taking a financial education course or setting up a budget.
You are actually making things worse if you give them money that they then blow, worsening your financial situation without helping them improve their situation. The book "Boundaries" also talks about how to set boundaries with relatives who assume they can demand money from you and guilt trip if you don't.
If they are starving, take them to the grocery store and buy a cart of real food for them. If getting evicted, pay for a week at a hotel for them.
They do not have a right to YOUR money. If they ask, you also have the right to refuse.