Even some Fortune 500 companies will hire a third-party investigation company. In addition to the above background check, they will also know the applicant's criminal record and credit record. Once the situation is discovered, of course, the decision to refuse employment will be made.
It is worth mentioning that the verification of work experience, senior positions, and some even check whether the experience of many companies in the past is true. Of course, the most common thing is to check the resignation certificate, do a background check, and understand your work performance in the last company. For example, if I interview an executive and have the intention to recruit, then I can ask her friends in her last company and ask her about her work. As a result, I know that she didn't resign by herself, but was fired. This is also a way to get to know the applicant, through the network resources of the industry.
So, never fool around in a company, you are not just fooling around.