Answer :

the Cell wall works like a Barrier that prevent sickness to enter 
The major function of the cell wall:  to provide rigidity, tensile strength, structural support, protection against mechanical stress and infection. It also aids in diffusion of gases in and out of the cell.