For any nonnegative random variable $Y$ , we have (see (21.9) of Billingsley's Probability and measure):
$$E[Y] = \int Y dP = \int_0^\infty P[Y > t] dt. \tag{$*$}$$
For $M > 0$, substituting $Y$ in $(*)$ with $XI_{[X > M]}$ to
\begin{align}
\int XI_{[X > M]} dP &= \int_0^\infty P[XI_{[X > M]} > t]dt \\
&= \int_0^M P[XI_{[X > M]} > t]dt + \int_M^\infty P[XI_{[X > M]} > t]dt \\
&= MP[X > M] + \int_M^\infty P[X > t] dt \geq MP[X > M]. \tag{$**$}
\end{align}
The third equality holds because for every $t \in [0, M]$, $\{XI_{[X > M]} > t\} = \{X > M\}$, and for every $t > M$, $\{XI_{[X > M]} > t\} = \{X > t\}$.
To wit, say, if we want to show for every $t \in [0, M]$, $\{XI_{[X > M]} > t\} = \{X > M\}$, just note
\begin{align}
\{XI_{[X > M]} > t\} &= (\{XI_{[X > M]} > t\} \cap \{X > M\}) \cup (\{XI_{[X > M]} > t\} \cap \{X \leq M\}) \\
&= (\{X > t\} \cap \{X > M\}) \cup (\{0 > t\} \cap \{X \leq M\}) \\
&= \{X > M\} \cup \varnothing = \{X > M\}.
\end{align}
Similarly it is easy to show for every $t > M$, $\{XI_{[X > M]} > t\} = \{X > t\}$.
Assume that $X$ is integrable (i.e., $E[|X|]< \infty$), then the left hand side of $(**)$ converges to $0$ as $M \to \infty$, by the dominated convergence theorem. It then follows that
$$0 \geq \limsup_{M \to \infty} MP[X > M] \geq \liminf_{M \to \infty} MP[X > M] \geq 0.$$
Hence the result follows.
Remark: This proof uses some measure theory, which I think is worthwhile as the proof assuming the existence of densities doesn't address a majority class of random variables, for example, discrete random variables such as binomial and Poisson.