Behaviour of an optically trapped probe approaching a dielectric interface