To “build a house on sand” (cf. Mt 7:26) is an image used to describe foolish behavior that leads us nowhere and ends up in failure after a long and painful effort to build something.
“Bene curris, sed extra viam”
(“You run well, but you are off the path”).
– St. Augustine