knoweth how--He is at no loss for means, even when men see no escape.
out of--not actually from.
temptations--trials.
to be punished--Greek, "being punished": as the fallen angels (Pe2 2:4), actually under sentence, and awaiting its final execution. Sin is already its own penalty; hell will be its full development.