This dinosaur likely roamed coastal plains and forested regions, using its armor and spikes to protect itself from predators.