That is one of the ways. In the business world, which is what Trump is use to, the threat of a lawsuit is sometimes better than a lawsuit.
In politics that's known as an empty threat or a political stunt.