At all costs has 2 different meanings across 2 categories:
Adverb · Prep_phrase
regardless of the cost involved
"he wanted to save her life at all cost"
Absolutely imperative; sparing no effort.