I used old pallets as a fence works pretty good and it's cheap.
Around here the farmers use them in the creeks to keep the cows in, fasten the tops to a cable strung between fence posts and when the creek rises they float up and out of the way of the water then back when the water drops. Most of the time the high water debris slides under and doesn't pile up against the pallets.