But it should be a wall.
The fence can be right by the river and the wall a bit further back. That way the wall can provide a platform for equipment.