The idea behind Universal Basic Income (UBI) is that everyone gets it. Rich, poor, and everyone in between. There is no criteria (other than maybe citizenship) that would prohibit getting the money. That helps to prevent what you are describing.
I'm sure someone will figure out a way to make it terrible in some way, but we have to implement it first and then deal with the hiccups.
The only danger I see in communism is that no matter how benevolent it starts, communism will always (eventually) become a dictatorship. If we could somehow take human greed out of the equation, communism could be really nice for everyone. As long as humans are in charge, communism will suck for nearly everyone.