When a light ray goes from one medium into another medium with a lower IOR, it bends towards the direction of the normal.
If it goes into a medium with a higher IOR, it bends away from the normal.