I have a gas range (gas stove - indoor) for cooking, and the metal grate that goes over the top has some areas of rust.
If I was to sand down the rusty areas, would it be advisable to paint it with a high-temperature rated paint, such as Rutland 1200 Degree Brush-on Stove Paint or Black Porcelain Repair Enamel?

The main concern I have is not about the effectiveness of the paint product at adhering, but the safety considerations of having a paint in contact with a flame when preparing food in a pot on-top.