$\newcommand{\rank}{\operatorname{rank}}$Given two matrices $A\in\mathbb{R}^{n\times n}$ and $B\in\mathbb{R}^{n\times r}$, I known that $$\rank(AB)\leq\min\{\rank(A),\rank(B)\}.$$
If $n\geq r$, $A$ is a positive semi-definite matrix and $B$ is full rank, i.e., $\rank(B)=r$, can I said that $$\rank(AB)=\min\{\rank(A),\rank(B)\}\text{?}$$ Any information will be helpful.
Edit: Also, $AB\neq {\bf 0}$.
Let $b\in\mathbb{R}^n$ be a vector satisfying $b^\top b = 1$. Let
$$A = I - bb^\top, \qquad B = b.$$
Then, $B\in\mathbb{R}^{n\times 1}$ has full rank (equal to $1$), $A$ is positive semidefinite with rank $n-1$ and all eigenvalues equal to zero or $1$, and
$$AB = b - b = 0,$$
which has zero rank.