Xu Ting had a contract with the bank beforehand, and it was not illegal for him to insert his card into the ATM to withdraw money. As for the situation in this case, where he could withdraw money exceeding the account balance at will, since it was allowed by the bank (through the ATM program), it was also not considered illegal or a breach of contract.