Constructing a multi-dimensional oscillation preventing scheme for the advection equation by a rational function