Use my same example from the other problem. Discrete topology on a set X with more than one element.

The boundary is the interior subtracted from the closure, but under the discrete metric every point set is both open and closed, so B(x,1) has boundary .

But the other set since everything in X is distance 1 from x except x itself.