This is what people do at beaches, and if you search Google or YouTube, you will soon find examples of people being unable to free themselves, especially when the tide comes in: one wave of water can undo a minute or two of frantic digging by bystanders.