A major function of the cell wall is to act as a pressure vessel , preventing over-expansion when water enters the cell .
The cell wall also acts as a pressure vessel , preventing over-expansion when water enters the cell by osmosis .