Back in the day when I did Accounting the trick was with cheques which bounced. Also remember what's normally debit and credit for you is vice versa in the ledgers of your Bank. (The institution, not the ledger entry)
You need to complement your books with those of the bank. Meaning, what's showing on the bank statement and not in your books should be documented, and vice versa.