One direction is trivial: suppose A\subseteq S and thus A=S, and fix x:A such that \forall y:A\mathpunct {.} y\prec x \implies y \in S holds. To show x\in S we use our assumption that A\subseteq S.
In the other direction, we suppose that for all x:A such that \forall y:A\mathpunct {.} y\prec x\implies y\in S we have x\in S. We need to show that A\subseteq S.
Fixing x:A, we need to show that x\in S. Suppose to the contrary that x\not \in S. Then the complement A\setminus S is non-empty and therefore has a minimal element m:A.
We will deduce that m\in S, which is contradictory. By assumption we have (\forall y:A\mathpunct {.} y\prec m\implies y\in S)\implies m\in S\text {.}
It therefore sufices to prove the antecedent:
\forall y:A\mathpunct {.} y\prec m \implies y\in S
Fixing y:A such that y\prec m, we see that y cannot lie outside S because it is smaller than m and m is the smallest element that lies outside S. Therefore, we have m\in S which contradicts our assumption m\not \in S.