SNP ministers are preparing for Donald Trump to potentially disrupt the Scottish economy.