IIRC, Scholar's Mate is actually:
1. e4 e5
2. Bc4 Bc5
3. Qh5 Nf6??
4. Qxf7++
Avoiding Scholar's mate:
The whole key to Scholar's mate (and its many variants) is the attack on the weak square f7 (and the corresponding square for White, f2). Ensure that your opponent does not have a winning attack against these squares and you should be allright against this type of common error.