Please see a doctor
soon! What you are describing could have several different explanations, but at least some of your symptoms are concerning for a severe tooth infection. The fact that you have had loose teeth over the last few days could indicate that some of your teeth are suffering from decay that needs to be treated. Once that decay allows the bacteria from your mouth to get into the tooth or the bones and muscles near the mouth, it can require more aggressive treatment. This is especially true if you have other medical conditions such as diabetes that can predispose you to more severe infections. The fact that you are unable to open your mouth fully is known as trismus, and can be a sign that something is irritating some of the muscles surrounding your jaw. This can be a sign of something that needs to be treated urgently, and treatment should not be delayed. Please speak with your doctor to see what needs to be done next. Part of your treatment may require seeing a dentist
as well, and you may need to have some teeth extracted. While the exact diagnosis isn't clear, please speak with your doctor quickly.