Numerically investigating the peculiar periphery of a supernova remnant in the medium with a density gradient: the case of RCW 103