In IP multicast routing, the router forwards the packet away from the source to make progress along the distribution tree and prevent routing loops.
When a multicast packet enters a router's interface, it will look up the list of networks that are reachable via that interface i.e., it checks the reverse path of the packet.