You can prevent ice dams by treating the cause - if there isn't a cold edge of the roof for water to freeze, the water will drip off the roof. Adding a warm edge such as radiant panels which are heat tape wrapped in metal that conducts the heat through the metal will allow water to drain off the roof without freezing.