I think within Christianity, or monotheistic religions, the "Be Careful What You Wish For" trope is still used, but framed as a deal with the Devil. The person making the deal gets what they want, but fails to foresee how severe the other end of the bargain would be when they lose their soul.
In the "traditional," non-monotheistic telling, man fails when he wishes for something, because he is mortal and fallible and cannot bear the power of the gods (or whatever they may be).
There's a creator that I occasionally see on TikTok that makes a running series of a guy making wishes to a genie. He might wish, "I want all the money in the world." And poof, he has all the money. Since there's no money left, humanity goes back to the barter system and now the money is worthless.
Each episode, he makes a different wish that doesn't turn out how he expects. In another, he wished for $5M USD, all in non-sequential hundred dollar bills. He thinks, surely I have outsmarted the genie this time. The money appears, and seconds later the FBI bursts into the apartment and arrests him for a bank heist.
In another, he wishes for $50M in unstamped gold bars that is created from raw ore within the solar system. He specifies that this is gold that nobody has ever seen before, is not being accounted for anywhere, and has no effect on the global economy. The genie says, "Hmm, great wish...I think you finally cracked the genie code." Then the gold appears falling from the ceiling and crushes the guy like a pancake.