Praise can prevent further incursions of evil and trouble. That's what happens here when the people's praise prevented the enemies of the gospel from taking further action against Peter and John.
When the people saw what God had done for the lame man, they rejoiced and praised God. Did they realize the farther-reaching implications of their praise? Do you, when you praise God and give him the glory he deserves?