Let's prove that $\mathrm {rank}(BX)=\mathrm {rank}(X)$, knowing that $B$ is invertible.
Proof: Let $V$ be a matrix such that $B^TX^TV=0$. Multiply both sides by $(B^T)^{-1}\implies X^TV=0$. This tells us that $X^T$ shares the same nullspace as $B^TX^T$ which implies $\mathrm {rank}(X)=\mathrm {rank}(X^T)=\mathrm {rank}(B^TX^T)=\mathrm {rank}((XB)^T)=\mathrm {rank}(XB)$, knowing the fact that $\mathrm {rank}(C)=\mathrm {rank}(C^T)$ for a matrix $C$.
So now we know that $\mathrm {rank}(XB)=\mathrm {rank}(X)$ and $A$ is invertible, which gives us $$\mathrm {rank}(AXB)=\mathrm {rank}(A(XB))=\mathrm {rank}(XB)=\mathrm {rank}(X)$$
where the second equality comes under the hypothesis $A$ invertible.