Dramatically reduce the amount of CO2 we produce. That's not going to prevent all problems, but if we do enough, it will prevent the worst problems.
We really need to aim at zero CO2 production. We will fall short of that goal, but everything will help slow things down, and eventually bring temperatures back to what they were, after natural plant growth has gotten the time needed to remove CO2 from the air again. Once that happens, the melting will stop and climates will stabilize.
If we can get global temperatures back to normal in a century, that means we'll have about 1-2 meter of sea level rise to cope with. That means the end of the Maldives and serious investments in some coastal areas, but many coastal cities will survive.
If we can get temperatures back to normal earlier than that, that will mean less sea level rise, and significantly less other problems. Not all damage can be undone, but some will, and there will be a limit to it.
But the longer it takes, the worse the effects will be, and the longer it will take to recover.
Of course we can also help nature a bit and plant more trees and look for other ways to get more CO2 out of the air. It maybe be drops in a bucket, but we're going to need a lot of drops, so we better get started. At the moment, we're still barely doing anything.