How can I stop my gums from inflammation and swelling?

Find the cause. You need to find out what's causing the problem, and treat that. Sometimes a good cleaning is all that's necessary, but you need to find out, because gum inflammation can eventually lead to loss of teeth.