TEL AVIV, Israel — Israel’s attorney general warned on Thursday against a raft of legislation being proposed by the expected next government, saying some of the planned new laws would imperil the country’s democratic principles.