The trick is to keep digging straight down.
Stock up on plenty of explosives to blast through the deeper layers, and eventually you'll reach the devil without needing any cheats.