Koszul homology and extremal properties of Gin and Lex