Even if numeric comparisons were being done, it would still always print "amount accepted".
Suppose amount is 0. Then since it's <= 50000, it's accepted. Suppose it's 1000000. Then since it's >= 500, it's accepted. No matter what you try, it's either >= 500 or it's <= 50000. I expect the real requirement was for it to be >= 500 AND <= 50000.