Git clone private repo and push it like public using another git account

Hi team,

I have a doubt the security of private repository protection.

How is the scenario:

A. I have access to the company’s private repository and I can clone the repository to my private laptop. I can work with repo without problem, then I have the necessary access to work.

B. I have another git account, my account. With this account, I can create a new repository and take a git push from the company private repo, that I have been cloned to my private laptop before and now it becomes a public repository, on my account.

My question is:
How I can prevent this action because it is a security issue. After all, the company’s code is part of its business rules of them. Is there any possibility to prevent this?