I see why you're concerned and I would be concerned with it myself. In my own moral code, we have a responsibility to help the poor – Jesus didn't say, "But most of them are spongers and they should be behaving more responsibly so I'm not going to give them any handouts." I'm not saying that you're saying that, but I know some people argue that many of the poor aren't deserving and therefore the fact that Jesus helped the poor isn't a model for our actions toward our poor. But “Whoever has two tunics is to share with him who has none, and whoever has food is to do likewise" (Luke 3:11) -- I think that's pretty clear. There wasn't a footnote with exceptions.
The way I see it, on earth we should be following Jesus's example and acting as his deputies, on his behalf, so to speak. So it behooves us to support programs that help the poor. But taking from those resources ourselves depletes the resources available and increases the chances that people might shut down the programs if people who are not poor are exploiting them. Isn't that the kind of fraud (even when legal) that we deplore? People would protest, and rightly so, "Those programs aren't helping the real poor, they're just helping whoever can get their hands on the money!" So we're called upon, I believe, to support the intent behind programs that are meant to help the poor, and not decide that because we can get at that money without being jailed, that's what we should do.
I think if we also consider "Render unto Caesar what is Caesar's," this means that we're called upon to give according to both the letter and the spirit of the law -- no claiming what isn't meant for us because there's a loophole in the tax code. The Bible speaks in many places about right intentions as well as right actions. And another way of rephrasing the Golden Rule is the "Universal Imperative" -- what would happen if everyone chose the path I'm contemplating? If everyone who was not poor went for the tax advantages intended for the poor, that would screw up the system. I know a lot of people say, "Well, all those other people are gaming the system, so why shouldn't I get some advantages?" But I think it's clear we're not supposed to do wrong even if everybody else is doing it.
“If among you, one of your brothers should become poor, in any of your towns within your land that the Lord your God is giving you, you shall not harden your heart or shut your hand against your poor brother, but you shall open your hand to him and lend him sufficient for his need, whatever it may be. Take care lest there be an unworthy thought in your heart and you say, ‘The seventh year, the year of release is near,’ and your eye look grudgingly on your poor brother, and you give him nothing, and he cry to the Lord against you, and you be guilty of sin. You shall give to him freely, and your heart shall not be grudging when you give to him, because for this the Lord your God will bless you in all your work and in all that you undertake. For there will never cease to be poor in the land. Therefore I command you, ‘You shall open wide your hand to your brother, to the needy and to the poor, in your land." (Deut. 15:7-11).
Those are my thoughts.