The maximum mass of a planet is about 13 times the mass of Jupitermaximum mass of a planet is about 13 times the mass of Jupiter, above that limit they are considered to be "brown dwarfs" and have at least some deuterium fusion in their cores at some stage of their life, and would probably glow a little.
The minimum mass of a star is 80 times the mass of Jupiterminimum mass of a star is 80 times the mass of Jupiter. Stars have hydrogen fusion and require this mass to form a core that is hot and dense enough for hydrogen fusion to oppose further gravitational collapse. So it would not be possible for a star to be less massive than a planet, and so it is not possible for a star to orbit a planet.