Let $M$ be a Turing machine with oracle to $B$ that can decide $B$ in polynomial time. In the general case it means nothing, since we can just pass the input as a query to the oracle of $B$ and accept/reject according to its answer.
Now, we add the next limitation: given an input of length $n$, the queries' length can be at most $n-1$. Now, how does the fact that this TM with oracle to $B$ can decide $B$ in polynomial time imply that $B$ is in PSPACE?