Coinbase famously rescinded offers days before people joined when they did a previously huge layoff. That's absolutely diabolical and I sometimes fantasize about accepting a job there and just ghosting them.

Isnt that the most fair thing for them to do?

It's better to do a hiring freeze before the RIF. Otherwise people have left jobs to come work for you and are now stranded.

Perhaps try to space out hiring and firing a bit more

You know, hire, stop hiring, then start firing

you don't even get a severance that way. People moved for a job, then got stranded without even getting a first paycheck.