The European Union (EU) has said it will act "swiftly and appropriately" if US President Donald Trump were to restrict the bloc's trade in any way, as he suggested in a recent TV interview.