The world’s largest electric vehicle maker posted a record profit for the fourth quarter in a development that bodes well for demand in its industrial real estate projects, but Tesla CEO Elon Musk warned investors of a possible recession and contraction in the automotive market as a whole this year.