 Let's say there's some type of civil unrest under a President Trump or even a President Biden. He could order his agents to shoot protesters. That would fall under his duties because that's law enforcement enforcing the laws. A President Trump or President Biden couldn't be prosecuted for that.