High-stakes diplomacy to avoid UN showdown