The atom may moves outside the face and will be deleted. To prevent this phenomenon, you can fix a wall and set the pure repulsive potential. See "fix wall command' in the LAMMPS manual.
The boundary "f" defines a fixed non periodic boundary. Generally atoms within this boundary will not interact with outside of the system. But as you asked that if atoms approaches to walls, atoms will be simply deleted from our simulation cell.so by the next time step there will be no constant no of atoms throughout the test