It’s perfectly healthy for the knee to go over the toe
No exercise is inherently BAD for you. If you got injured chances are it’s YOUR body wasn’t optimal for the exercise.
You’d don’t HAVE to squat and deadlift to build great legs... though I think they are a positive