How can a democratic system maintain the ideal of individual freedom without infringing on the freedom of others

How can a democratic system maintain the ideal of individual freedom without infringing on the freedom of others