Britain should stop threatening the European Union ahead of the Brexit negotiations, a top EU official has warned.