Country folk assure me that crows can also not only tell the difference between a gun and a stick, but they also have a pretty good idea of what the effective range of the gun is.
My father often tries to shoot the crows in his garden. However, as soon as he opens the door with a rifle they take off. I'm secretly always rooting for the crows.
That crow is a little over confident. 40 yards isn't all that hard on a crow size target with at .22 pistol, with practice. Back up about another 20 yards and the crow is probably pretty safe.