In reverse osmosis type freshwater generator plants, pretreatment of the feed water is done to: