Rovers were beaten 4-1 by Macclesfield in Tuesday night’s 1st v 2nd battle at the top of the National League.
The defeat deflated the club - and twice falling behind in Kent, their backs were against the ropes again.
But Adam Buxton’s penalty with two minutes to go took all three points back to Merseyside and Mellon was quick to praise the team’s powers of recovery.
“It was a massively important result for us,” said the Scotsman, who knew they needed to win to keep the Silkmen within reach.
“The conditions were difficult and under the circumstances we have got to be delighted.
“It was an incredibly valuable three points after the disappointment of the result, not really the performance, but the result of the game with Macclesfield on Tuesday night.
“We messed around with the shape a little bit at half-time to try and get at them a little bit more. It worked.”
Mellon added: “It was a bit of a scrappy game. It won’t be one where they are getting the DVD out for in years to come.
“We were forced into changes before the game and during it - every credit to the players that came on.
“We try to take positives out of everything we do. We have worked hard to get a very valuable three points.”