Every act is to be judged by the intention of the agent.
Source Unknown