Q:

What should I do if my boss is thinking about firing me

Answer

Ask! Information is your best defense against an unexpected firing. If you think it is inevitable then dust off your resume!