I did several things
One, I knew there would always be another gun to buy and avoided buyitis.
When I studied and decided which one, I paid - Cash.
Watching those twenties, fifties or hundreds rolling off the fingers can sure cure buyitis. You don't want to do that too often.
And it cured any inclination to sell them later. I only bought what I could afford, when I bought it.
Not using plastic helped me avoid a lot of problems.