Mining involves finding hashes that match the parameters. The difficulty specifies that the final hash is invalid unless the value of your hash is lower than a certain value.
For example, this is difficulty 1: 0x00000000FFFF
And this is around difficulty 16,000: 0x00000000000404CB
A hash value 0x00000000A123.......... would be valid for difficulty 1 and not valid for difficulty 16,000.
So, I could manufacture blocks at a lower difficulty, but it would make my chain shorter, and i could manufacture blocks at a higher difficulty but it would proportionally increase time spent making each block.
Ok i kinda get it now, everything is cryptographically guaranteed, not just a parameter in a database.
No wonder its called cryptocurrency. It is really fascinating how bitcoin works behind the scenes, these crypto operations surely was designed by geniuses.