Split the integral at t=1.
On (0,1], e−t≤1 gives 0<tx−1e−t≤tx−1.
Since ∫01tx−1dt=x1<∞ exactly when x>0, the comparison test gives convergence of ∫01tx−1e−tdt.
On [1,∞), write tx−1e−t=(tx−1e−t/2)e−t/2.
The function g(t)=tx−1e−t/2 is continuous on [1,∞) and tends to 0 as t→∞, hence is bounded: choose R with g(t)<1 for t>R; on [1,R] it attains a maximum by the extreme value theorem, and beyond R it is below 1.
Since g takes positive values, this maximum is attained, so with M=maxt≥1tx−1e−t/2<∞ we get tx−1e−t≤Me−t/2.