A light ray enters from medium A to medium B as shown in figure. The refractive index of medium B relative to A will be:

(1)
As the light ray when travelled from medium A to medium B, then they bend towards the normal which means that medium B has higher refractive index and less speed of light with respect to medium A. So, refractive index of medium B w.r.t. medium A will be greater than unity.