Both the devices can block the traffic using the ACL’s. The main difference is
-Routers are meant to do Routing they are not optimized to handle the ACL’s.
-Firewalls are meant to allow/block access . Also most of the firewalls provide stateful packet inspection that Router don’t provide.