What else constitutes the circuit? Is this a resistor on its own (i.e. the 5V 2A supply connected across it) or is the applied voltage/current passing through it to 'something else?
You can apply 1,000,000V and 1,000,000 amps to a 0.1W resistor provided there's nothing connected to the other...