What debit and credit really mean
Debit and Credit are the two sides of accounting.
Debit does not always mean increase.
Credit does not always mean decrease.
Simple line: Debit means left side. Credit means right side. The effect depends on the account.
For some accounts, debit means increase. For some accounts, credit means increase.
So first understand the account type, then apply the rule.