This might help,the presence of hydrochloric acid creates an acidic environment within the stomach that is needed to convert pepsinogen to pepsin. Mucus that is produced by the epithelial cells of the stomach help protect the lining of the stomach from the corrosive hydrochloric acid and pepsin.
The very function, or job of CELL MEMBRANES is to protect the cell from it's surroundings, or in other words, to keep it safe. It controls the movement of substances in and out of cells and organelles, like a guard watching for suspicious activity and protecting something.
The cell membrane itself is a thin, flexible layer around the cells of all living things. It separates the inside of the cells from the outside of the cells.