Generally the cell membrane is like a barrier for the cell, so it doesnt allow particles in. Some particles can pass through the cell membrane (through processes like diffusion, osmosis, active transport, and cytosis), which is why it's selectively permeable: only sometimes particles can pass through the membrane.