Eventually even coconut trees don't help. I, along with extended family, own a large coconut plantation in Fiji with over 1km of beachfront. Wave erosion has been so bad that in some places it's gone past the first row of trees so that they're detached from the beach and stand alone out at sea at high tide.