Well, first thing would be to make sure your tank is properly cycled before you add any fish.
Second would be to make sure that the tank setup you have is appropriate for the fish you would like to get.
Third, you need to choose healthy livestock from a reputable dealer.
Fourth, keep up with tank maintenance, don't overfeed, and don't overstock.