Others (H_B) have already given the correct answer. I'm just adding some more detail here:
$\implies$ (proving forward direction)
To prove by contradiction, assume $\sup(A)\gt\inf(A)$ and suppose $\nexists$x,y$\in$A such that x$\lt$y (alternatively $\forall$x,y$\in$A, x=y). This means $\left\vert{A}\right\vert$ = 1. So, choose $x_o\in$A. By definition, $\sup(A)\ge$$x_o$. Also by definition, $\inf(A)\le$$x_o$. But since $\left\vert{A}\right\vert$ = 1, we know $\sup(A)$=$x_o$ and similarly $\inf(A)$=$x_o$. $\therefore$ $\inf(A)$=$x_o$=$\sup(A)$, which is a contradiction.
$\impliedby$ (proving reverse direction)
Choose x,y$\in$A such that x$\ne$y (two different points in A). Without loss of generality, we may assume that x$\lt$y. By definition, $\sup(A)\ge$x and $\sup(A)\ge$y. Also by definition, $\inf(A)\le$x and $\inf(A)\le$y. Since x$\lt$y, it can be seen that $\inf(A)\le$x$\lt$y$\le\sup(A)$. $\therefore$ $\inf(A)$<$\sup(A)$.