What is the role of the cell membrane in both active and passive movement of molecules?