The purpose of CIA Director John Ratcliffe’s visit to Moscow this week was to warn Russia not to attack NATO member states, according to multiple people familiar with the matter, amid U.S. intelligence assessments that Russia could try to test NATO.