Anticompetitive behavior only matters when it is a monopoly.
Anti-competitive behavior can be illegal all by itself. Price fixing is one obvious example but there are plenty of others.
If you got the monopoly without doing anti-competitive behavior, such as by simple having a better product or by getting lucky and having competitors that all made stupid mistakes that sunk them, your monopoly may be legal.