Bhagavad Gita, Chapter 17, Verse 22
The gift that is given at the wrong place or time, to unworthy persons, without regard or with disdain, that is declared to be Tâmasika.
Even generosity itself is shown here capable of real harm when given without any care for who's receiving it.
Krishna doesn't treat all giving as automatically good, wrong timing and disrespect are named as real problems in their own right. Good intentions alone aren't enough to redeem this.