Here's why:
* Prepositions are words that show the relationship between a noun or pronoun and another word in the sentence. Common prepositions include "with," "on," "in," "under," "around," "of," "to," "from," etc.
* Prepositional phrases consist of a preposition and its object (the noun or pronoun that follows the preposition).
In the sentence, "with" is the preposition and "its rattle" is the object. This phrase tells us how the rattlesnake warns others.