Every block that's mined has to be validated by peers. If it doesn't pass validation, then other miners won't build blocks on top of it. Obviously changing coinbase reward might be something that makes a block fail validation.
Thanks, that makes sense.
If anyone can point me to the files that contain the code, that does this magic. I'd appreciate it.