Logistic regression and Ising networks: prediction and estimation when violating lasso assumptions