There's no way to properly check for the Bonus Coin cheat because it's a one-time cheat that unlocks all Bonus Coins, then the cheat's flag disappears when you reload the save and you keep the Bonus Coins. So I can't prevent the use of it on these.