TCAS RA orders must be followed even at max ceiling altitude with CLIMB orders.
Stall warning must be respected.
In alternate law it is not wise to be at FL390. In normal law stall warning does not apply. Alpha protection and Alpha floor do. Get the best your airplane can give you and pray...