To me, it looks like you have a very old Zinc coated gate, which has many areas which have been touched up with a grey paint (I may be completely wrong)..
Typically the galvanization is done when the clean metal fence is dipped into molten zinc and effectively coated in a corrosive resistant zinc shell. if you would like to return the fence to original condition, your best bet would be to remove the entire gate and take the unit to a galvanizing plant for re-galvanizing. Unfortunately the fact that it may already be galvanized means that they need to acid remove the original coating which will cost double, and they would be worried that the acid burns into the mesh too much. (you would have to remove your lock and consult the galvanizing guys if the current hinges will be ok)
The other option is to simply remove all traces of the rust from the existing gate and re-apply a coating of paint. I would say if you choose to paint the gate do not remove, however if spraying is your intention, then i would recommend removal.
To prepare for painting. some sand paper and stainless steel brushes would do the trick, if you have some power tools you could really benefit from steel brush powertool accessories (drill, grinder or polisher)
Using some sand paper, and steel brushes (in the heavy rust areas) scrape away all rust. Once you are happy, I would apply a primer coating (zinc chromite metal primer) and then a final coat of good quality enamel paint.
The corrosion you are seeing are the zinc which has formed pots (are you near the coast?) if so... painting your fence with enamel is not advised.. since corrosion is too excessive near the coast.
another option would be to prepare the fence (sanding where the rust areas are) and then re-applying the galvanized coating with a brush. this will add some life back to the gate (but does not compare to actually having the gate professionally galvanized)
a Google search for galvanizing paint or spray should get some results.
Lastly, if you are worried about painting on the wall, simply use some masking tape on the edges.
If you want the boards to look brand spanking new again, you will want to go with method one. I'd use a heat gun to do it, and not the harsh chemical strippers. Either method takes about as long as the other and the heat gun method is less toxic, and, you either already have a heat gun and don't need to spend money, or you'll buy one and have it for a long time - they come in handy. You'll want a good organic vapor respirator for either method still, and a variety of scraping tools.
Method two sounds more appropriate if perfection is not important. Going this route, you'll want to start with various putty knives and scrapers and knock off any obviously loose and flaky paint, and then use 120 grit sand paper not to remove all the paint, but only to rough up the surface of any remaining paint that is sound and knock down any really high spots. This will leave you with patches of bare wood, and patches of sound, old paint. I don't recommend trying to sand off all of the old paint. If this is your goal, then go with method one. Also - buy expensive sand paper. Cheap sandpaper is a false economy as you'll burn through it so much faster than the good stuff.
Either way, you should use primer whenever painting bare wood, or a combination of bare wood and sound paint. You don't need primer when only painting over sound old paint.
Best Answer
You should give the old paint a light sand to provide a “key” so the new paint will cover well. a fine grade sandpaper is all that is needed.
A light sand is just enough to see gentle scratch marks in the surface and not heavy enough to go through into the layer beneath.
If you don’t then when you put the new paint on it may not cover easily or when it dries it can chip or peel off.