Upper and lower bounds for nilpotency classes of Lie algebras with Engel conditions