river threatened to inundate coastal districts of Vijayawada and Guntur in neighbouring Andhra Pradesh, senior officials said.