If the pain persists on and off, should get the wisdom tooth removed.
Sooner or later, extraction of wisdom tooth, is the permanent solution.
Health Tips
Hold Luke warm water with pinch of black salt in it in mouth as much as possible at a time,it would help in relaxing tenderness and the muscles too.
ice pack pressure extra-orally over the same area,
avoid hot compression balm or ointment application extraorally.