This article refers to the minimum requirements to proceed with a chassis cluster.
There is no limitation from Juniper’s perspective to be directly connected to the ISP port or having a switch in between. The only requirement will be 2 ports to connect both nodes to internet to make sure there will be redundancy on the network.
Please refer to the following documentation:
Chassis Cluster Features Supported on SRX Series Devices
Chassis Cluster Overview