Hi Qazik,
There is a problem with your configuration, rule 3 has denied all access to 172.17.107.0. Then the second rule 5 is meaningless. You should configure as follows:
acl number 3000
rule 5 deny ip source 172.17.112.0 0.0.0.255 destination 172.17.107.0 0.0.0.255
traffic-filter vlan 312 inbound acl 3000
I hope it helps!