Beach goers have been reminded it is illegal to take pebbles away after a man was threatened with legal action.