The Castle Douglas side's promotion hopes suffered a blow as they were beaten 5-2.