The closer objects are to each other, the stronger the gravitational force between them.
When a star is nearing a planet, the star will be pulled into it if the gravitational force is
1. weaker
2. stronger