How are these equivalent to the regular epsilon-delta definition of continuity?

(i) Let $\displaystyle f: M \to N $. The pre-image of each closed set in $\displaystyle N $ is closed in $\displaystyle M $.

(ii) The pre-image of each open set in $\displaystyle N $ is open in $\displaystyle M $.