You can upgrade only one class higher if you’re bidding for an upgrade. However, if you’re paying for an upgrade or upgrading with miles/points, you can upgrade to any higher class.