Per this document, I do not think this configuration is possible on trunk interfaces: https://www.juniper.net/documentation/en_US/junos/topics/task/configuration/port-security-mac-limiting-cli.html
The only reference to trunking states that you can limit the number of mac addresses learned on a trunk, but that is it. What are you trying to accomplish? There's probably another way we can do it.