When light passes from an optically rarer medium to an optically denser medium, the light bends away from the normal.
Total Internal reflection happens only when light is travelling from an optically denser medium to an optically rarer medium.