Stanley took the lead shortly after the interval as Isaac Heath delivered an inviting cross and Paddy Madden headed home.
A solitary goal from Paddy Madden early in the second half secured the points for the visitors and condemned the hosts to a seventh defeat in eight.