Both the cell wall and the cell membrane seperate the organelles and cytoplasm inside the cell from the stuff outside the cell.
The cell wall is a hard protective wall on the outside of the plasma membrane of a plant cell. Its function is to protect the plant cell and provide structural stability.
The cell membrane is what seperates the substances inside the cell and the substances outside the cell. The cell membrane is semi-permeable