The question was to find the range of $p$ so that the following game is strictly determinable.

I calculated the row minima and column maxima ignoring $p$, since we don't know the value of $p$ and obtained $\text{minimax}=-2$ and $\text{maximin}=3$ (though these are not the original maximin and minimax).
I plugged in three values of $p$ for the cases $p<-2$, $-2\le p\le 3$ and $p>3$ and of them $-2\le p\le 3$ is satisfied.
But how do I find this condition mathematical reasonings rather than any trial and error method?
Let $\operatorname{minimax}(p)$ and $\operatorname{maximin}(p)$ denote the minimax and maximin as functions of $p$. Some things to note:
Together, these facts imply that $\operatorname{minimax}(p)=\max(p,-2)$ and $\operatorname{maximin}(p)=\min(p,3)$, and $\max(p,-2)=\min(p,3)$ holds iff $-2\le p\le3$.