Dig a trench and bury a log (or large rock) which you have tied a cord on to. Or fashion a spear to pound into the sand.