How is soil salinization prevented from happening

How is soil salinization prevented from happening in the first place in agriculture