Skip the cheater plug.
Not really safe, and definitely not worth the risk.
A cheater plug (the little three-to-two prong adapter) lets you plug a two-prong cord into a three-prong outlet, but it only works if the little metal tab is actually screwed into the outlet’s cover plate — and even then, you’re relying on a flimsy connection to ground. Two-prong extension cords have no ground wire at all, so plugging one in with a cheater plug means whatever you’re running has zero grounding. If a fault happens inside a power tool or appliance, the metal case could become live.
For lights or low-draw electronics, you might get away with it for years. But the whole point of a three-prong outlet is safety. You’re bypassing that safety for the convenience of an old extension cord. If you need grounding, buy a grounded three-prong extension cord. They’re cheap.
Your breaker panel will thank you.