Warwickshire advanced to the brink of Division One safety after Essex were forced into a dogged rearguard action on the third day of their Specsavers County Championship Division One tussle at Edgbaston.