"Is he who laid the foundation of his building on piety from Allah and His pleasure better, or he who laid the foundation of his building on the edge of a crumbling bank?" meaning: the edge of a cliff.
"So it tumbled down with him into the fire of Hell," meaning: that the one who laid his building's foundation upon piety from Allah