If something is necessary at all costs, it means it must be done no matter what.
We must finish the project at all costs.
我們必須不惜一切代價完成這個專案。