Of course, if you don't apply, you should apply for a patent if your "invention technology" can be imitated by others after it comes out.
If you apply for a patent and get a patent right, how to prevent it from being infringed?
From a technical point of view, if your patented technology is difficult for others to imitate, then basically put an end to the infringement of others.
If, after your patent comes out, others can acquire technology by buying your product or inquiring about the contents of your patent certificate, then it will be imitated.
So how to prevent it? (or how to get protection)
Contact each other to solve it. Permission, cooperation and so on.
Administration, through patent management departments, such as local science and technology bureaus.
Justice, through court prosecution.
Third parties, such as Taobao platform complaints.
Basically, if you make your technology public (patent application needs public protection), your technology can be obtained by others. It is difficult to prevent others from infringing, only to say how to protect after infringement.