Brussels has warned both Belgrade and Pristina that refusal to compromise jeopardises Serbia and Kosovo’s chances of joining the European Union.