The parabolic boundary is contained in the closed cylinder.
The closed cylinder is nonempty whenever $T \ge 0$ and $a \le b$.
The parabolic boundary is nonempty whenever $a \le b$ (it contains $(0, a)$).
The closed cylinder $[0,T] \times [a,b]$ is compact, as a product of compact intervals.
At an interior maximum point $(t_0, x_0)$ of $u$ in the closed cylinder (with $t_0 > 0$ and $a < x_0 < b$), the time derivative satisfies $u_t(t_0, x_0) \ge 0$, since $u$ does not increase as $t$ decreases away from the maximum.
At an interior maximum point $(t_0, x_0)$ of $u$ (with $a < x_0 < b$), the second spatial derivative satisfies $u_{xx}(t_0, x_0) \le 0$, by the standard one-variable second derivative test.
Combining the time and spatial derivative tests: at an interior maximum point of $u$, the heat operator is nonnegative, $L_D u(t_0, x_0) = u_t - D u_{xx} \ge 0$ (when $D > 0$).
The perturbation identity: $L_D(w - \varepsilon t) = L_D w - \varepsilon$, used to convert a non-strict inequality $L_D w \le 0$ into a strict one for the perturbed function.
Strict version of the weak maximum principle: if $L_D u < 0$ strictly throughout the interior of $Q_T$, then $u$ attains its maximum on the closed cylinder on the parabolic boundary $\partial_p Q_T$.
Theorem 1.1 (Weak Maximum Principle). Let $w \in C^2(Q_T) \cap C(\overline{Q_T})$ be a solution to the heat equation $w_t - D \Delta w = f$ with $f \le 0$. Then $w$ attains its maximum on $\overline{Q_T}$ on the parabolic boundary $\partial_p Q_T$, i.e. $w(p) \le \sup_{\partial_p Q_T} w$ for every $p \in \overline{Q_T}$.
Comparison principle. If $v, w$ are $C^2$ functions on the closed cylinder with $L_D v \ge L_D w$ in the interior and $v \ge w$ on the parabolic boundary, then $v \ge w$ on all of $\overline{Q_T}$.
Stability estimate. If $|L_D w - L_D v| \le M$ on $\overline{Q_T}$, then $\max_{\overline{Q_T}} |v - w| \le \max_{\partial_p Q_T} |v - w| + T \cdot M$, giving stability of the solution with respect to the right-hand side.
Corollary 1.0.1 (Comparison Principle and Stability). Combines the comparison principle and the stability estimate: under appropriate $C^2$ regularity hypotheses, if $L_D v \ge L_D w$ and $v \ge w$ on $\partial_p Q_T$, then $v \ge w$ throughout $\overline{Q_T}$; and if $|L_D w - L_D v| \le M$ on $\overline{Q_T}$, then $\max_{\overline{Q_T}} |v - w| \le \max_{\partial_p Q_T} |v - w| + T \cdot M$.