Part of the problem in my campaigns is that the players have put some build-effort into having their characters go early, so A) there's only so much I can do and B) I really don't want to negate their intentions, there. I mean, there are times when I could give the BBEG an extra +10 on init and between the character builds and my dice luck they'd still go last.
1) Have the BBEG be proactive against the player. Do not let them choose when they meet it whenever it is logical to do so.
2) Make sure that the players have a few encounters before meeting the BBEG. With fewer resources it will be harder on them.
3) If they insist on resting before the big showdown. Let them rest. Depending on the BBEG, it might be a death sentence for them. Especially if they use Tiny hut. Have the BBEG have a caster and dispel that hut. Bang the BBEG will fight on its terms. If not, have the BBEG have reinforcement (one of my favourite). Make it clear that the longer they take, the more reinforcement the BBEG will get.
Also, BBEG are build for 4 players in mind. Having more means that BBEG are not at their best. I have two groups of 6 players. My BBEG are modified to respect that.
I use this:
Single encounter big bad guys
Add 1 feat/ASI per 4 CR (save the first four)
Add 1 legendary action per PC above 4.
Multiply HP by 1 +0.25 per PC above 4.
Add 1.5 AC (round up) per PC above 4.
Here is a modified lich my players defeated at 17th level in a previous campaing.
AC: 17 (natural armor + dex) Now 23 (+1.5 AC x 2 for players number, Staff of power and +1 ring. It could go up to 25 for one attack because of the shield guardian and I am not counting shield. Since shield was an at will power, it became and AC 28 and 30 for one attack)
HP: 135 (18d8 + 54) Now 238 for a 1.5 multiplyer for number of players and tough feat (+36hp).
Spd: 30' (unchanged)
Stats: Unchanged (decided to use feats instead...)
Added: Warcaster, Elemental Adept Fire (that one was a surprise for my players), Tough.
Mage feature added: Shield and Mirror image at will (I counted that one as a feat)
Spell list was changed to reflect the added mage feature and feats.
Cantrip: Removed prestigiditation and added Fire Bolt. Rose number of cantrip to four and added Green Flame blade
Level 1: Removed shield and added disguise self (Lich used it to appear human as she did in her life.)
Level 2: Removed Mirror image and added Misty step instead.
Legendary action Rose to 5 (again 6 players)
Lich was also using Staff Of Power And a Shield Guardian.
It does not make BBEG overboard. But it does make them harder for larger group.