Gelson Martins scored his second goal of the season for Monaco, lifting them out of the relegation zone.