I assume you mean f is Riemann-integrable--it isn't true for Lebesgue integration.

For any partition P, every interval will contain an element of A, and therefore the upper sum is non-negative for that partition. Since f is integrable, the upper sums converge to the integral as the mesh goes to zero, and so the integral is non-negative.