Struggling Gillingham ended a run of four successive League Two defeats with a point from a battling 0-0 draw at Crawley.