Prevention is better than cure and certainly applies in this case. Following a good oral hygiene routine such as brushing your teeth at least twice a day, using dental floss and having regular check ups can help.
But if you have developed gum disease then any treatment is likely to be easier if it is caught at an early stage. This will be a
scale and
polish, antibiotics to ease any infection and
root canal treatment which removes bacteria from within an infected tooth.