By staying in The Light, you don't allow sin to enter in your life by committing a sinful act. You also don't allow your surroundings of people around you to act out in sin as well. This doesn't mean we're perfect, we simply get up from the fall in repentance and continue on: not remaining in the fallen state or allowing the fallen state of our surroundings to remain the same.