By condition, $A$ satisfies $A + A^\top = ee^\top - I_{(n)}$, where $e$ is an $n$-long vector of all ones. View $A + A^\top$ as a linear operator on the real linear space $V := \mathbb{R}^n$, and let $U$ be the subspace of $V$ spanned by $e$. It then follows that for any $x \in U^\perp$, we have
\begin{align}
2x^\top A x = x^\top(A + A^\top)x = x^\top ee^\top x-x^\top x = -x^\top x \leq 0. \tag{1}\label{1}
\end{align}
Moreover, $\eqref{1}$ shows that $x^\top A x < 0$ for $x \in U^\perp$ and $x \neq 0$. Let's prove that this implication necessitates $\operatorname{rank}(A) \geq n - 1$.
If $\operatorname{rank}(A) = r < n - 1$, then the dimensionality of the null subspace $W := \{x \in V: Ax = 0\}$ is $n - r$, which is greater than $n - (n - 1) = 1$. The non-positive condition derived above clearly implies that $U^\perp \cap W = \{0\}$. It then follows by the dimensionality theorem that
\begin{align}
\dim(U^\perp + W) = \dim(U^\perp) + \dim(W) = n - 1 + n - r > n - 1 + 1 = n,
\end{align}
which is impossible because $U^\perp + W$ is a subspace of $V$, whose dimensionality is $n$. This completes the proof.