If you want to withdraw 500&, recepit(500$) and the account was decreased with 500. The ATM gives you 100$ free, then enjoy your free money. We shouldn't have mercy for banks!
Stealing from a thief still makes you a thief. Any way you look at it it's not your money, you don't have the right to steal.