Court to hear anticipatory bail plea on August 31