261. Every person who, by his act or omission, aids another person to commit an offence under section 257 or 258 is guilty of the offence as if he had committed it himself, if he knew or ought to have known that his act or omission would probably result in aiding the commission of the offence.