It's a symbiotic relationship.
The plant and animals both have a yearly lifecycle because the winter is very, very harsh--so harsh that pretty much everything dies over the winter unless it's in some protected state (like a seed or an egg case).
The plant is only seasonally poisonous. During the spring/summer/early fall it provides an absolutely ideal habitat for the young animals (maybe even mandatory like monarch butterfly larvae and milkweed). Sometime in the fall the animals mate and lay eggs which they carry around with them. Then in the late fall the plants start becoming poisonous.
The adults (carrying their eggs) happen to eat the poisonous plants just before the time when they burrow deep, deep into the ground to create a safe place for the eggs. When the timing is right, the poison kills the animal still in the burrow next to the eggs, in which case the eggs and seed have a nice, safe, comfortable winter under ground.
Then in the early spring the plant starts to grow. A few weeks later, the eggs hatch and the young have a perfect home to live in all year until fall.
Now you have a bunch of evolutionary pressures keeping this stable...
The plants need the animals to carry their seeds away and dig down, so only individuals who have a thriving nest of the animals living with them will be able to reproduce. And the seed poison needs good timing (based on digestive time of the animal) to make sure that the animal and the seed and the eggs are all underground together when the animal dies. If the seed is not poisonous enough then the animal might bury the eggs but return to the surface before dying, if it's too poisonous then the animal doesn't have time to burrow. If the seeds are too early in the year then the animal hasn't laid the eggs yet, too late and no animals are left to eat the seeds.
The animals who's young start off with their own plant habitat are able to grow faster and out-compete the ones that didn't, so the animals have evolutionary pressure to keep eating the seeds even though they're poisonous (plus they provide good nutrition for digging that burrow to protect the eggs). There's no evolutionary pressure against eating the seeds because the adults are already reproductively done anyway.
On earth some animals lay their eggs in other animals to provide nutrition (parasitic wasps) and some animals commit matriphagy -- the mother's body provides the nutrition for the young. This is sort of a combination, the adult's body provides nutrition for the plant which then provides nutrition for the young.