Well, it was technically just a trick. She "only" shattered the heavens with her density-manipulating powers, making the Moon's reflection break as well (since in Touhou lore what you see in the sky is almost never the actual Moon, and humans can't see the real Moon or they'd go mad/die). And it wasn't to warn the lunarians, but the people in Gensokyo.