So you're saying the issue is it upgrades two levels at once if there are enough coins? Then only allow it to increase one level at a time. Structure your events so that when you hit upgrade it increases the level by 1 only, regardless of amount of coins.