As well as the extreme importance of having a 'generator interlock' - something that physically disconnects your house from the power grid, so you aren't electrifying external power lines (lines that people expect to not be electrified when the power is turned off).
Seriously, speaking as someone who has worked as an electrician. Unless you're experienced, don't play with it.
If that happened you would know because your lights were on.
And what would actually happen is nothing, because the generator circuit breaker would blow from trying to power the entire neighborhood.
The only way this could happen is if you were right at the end of the feeder line, and managed to down a line such that only you and your neighbor were online - in which case enjoy the free power. (And then yell at your neighbor to fix it.)
Do things properly, sure, but don't over estimate the danger.
Easiest permanent DIY job would be to wire a dedicated outlet to your fridges and freezers and any important electrical equipment, and switch them to the generator outlet when you need it. No crossing circuits, no real problems.
If you have no electrical experience, deal with the extension cords.
For a normal installation - definitely, do it properly. But in an emergency? Just turn off your main breaker.
(at least every year there is a hurricane).
It is probably less of an issue up north since people are probably leaving their windows open rather than having them shut and the AC on, but it is worth repeating.
Wouldn't they be wanting to heat their houses, instead?
Someone picks it up and ZAAAAP.
I agree, don't do it.
http://cd.textfiles.com/group42/ANARCHY/COOKBOOK/BLOTBOX.HTM