In order for the limit to be -1, both the left and right limits must equal -1. But notice that
 lim
x0
f(x) = 3.