People are being warned about digging deep, steep-sided holes and the dangers of them collapsing.